///
unsigned getLineTableFilenameID(const char *Ptr, unsigned Len);
+ /// AddLineNote - Add a line note to the line table for the FileID and offset
+ /// specified by Loc. If FilenameID is -1, it is considered to be
+ /// unspecified.
+ void AddLineNote(SourceLocation Loc, unsigned LineNo, int FilenameID);
//===--------------------------------------------------------------------===//
// Other miscellaneous methods.
}
+/// AddLineNote - Add a line note to the line table for the FileID and offset
+/// specified by Loc. If FilenameID is -1, it is considered to be
+/// unspecified.
+void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo,
+ int FilenameID) {
+
+}
+
+
//===--------------------------------------------------------------------===//
// Private 'Create' methods.
//===--------------------------------------------------------------------===//
CheckEndOfDirective("#line");
}
- // FIXME: do something with the #line info.
+ SourceMgr.AddLineNote(DigitTok.getLocation(), LineNo, FilenameID);
}
/// ReadLineMarkerFlags - Parse and validate any flags at the end of a GNU line
return;
}
- // FIXME: do something with the #line info.
-
-
-
+ // FIXME: do something with the #line flag info.
+ SourceMgr.AddLineNote(DigitTok.getLocation(), LineNo, FilenameID);
}