Add support for host/device stub functions for offload.
This commit is contained in:
2
lex.ll
2
lex.ll
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user