Add support for host/device stub functions for offload.

This commit is contained in:
Ingo Wald
2012-06-12 10:23:49 -07:00
committed by Matt Pharr
parent dd4f0a600b
commit 789e04ce90
6 changed files with 483 additions and 29 deletions

2
lex.ll
View File

@@ -49,6 +49,7 @@ static void lCppComment(SourcePos *);
static void lHandleCppHash(SourcePos *);
static void lStringConst(YYSTYPE *, SourcePos *);
static double lParseHexFloat(const char *ptr);
extern void RegisterDependency(const std::string &fileName);
#define YY_USER_ACTION \
yylloc.first_line = yylloc.last_line; \
@@ -662,6 +663,7 @@ static void lHandleCppHash(SourcePos *pos) {
++src;
}
pos->name = strdup(filename.c_str());
RegisterDependency(filename);
}