forked from OSchip/llvm-project
parent
34eb6d877e
commit
f7bfae6b45
|
@ -940,8 +940,7 @@ static ASTConsumer* CreateASTConsumer(const std::string& InFile,
|
|||
|
||||
/// ProcessInputFile - Process a single input file with the specified state.
|
||||
///
|
||||
static void ProcessInputFile(Preprocessor &PP, unsigned MainFileID,
|
||||
const std::string &InFile,
|
||||
static void ProcessInputFile(Preprocessor &PP, const std::string &InFile,
|
||||
TextDiagnostics &OurDiagnosticClient) {
|
||||
|
||||
ASTConsumer* Consumer = NULL;
|
||||
|
@ -1180,7 +1179,7 @@ int main(int argc, char **argv) {
|
|||
|
||||
SourceMgr.setMainFileID(MainFileID);
|
||||
|
||||
ProcessInputFile(PP, MainFileID, InFile, *DiagClient);
|
||||
ProcessInputFile(PP, InFile, *DiagClient);
|
||||
|
||||
HeaderInfo.ClearFileInfo();
|
||||
|
||||
|
|
|
@ -216,7 +216,7 @@ public:
|
|||
void AddPragmaHandler(const char *Namespace, PragmaHandler *Handler);
|
||||
|
||||
/// EnterMainSourceFile - Enter the specified FileID as the main source file,
|
||||
/// which implicitly adds the builting defines etc.
|
||||
/// which implicitly adds the builtin defines etc.
|
||||
void EnterMainSourceFile(unsigned CurFileID);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue