support LLVM trunk after 203559 203213 and 203381 revisions
This commit is contained in:
@@ -2099,12 +2099,12 @@ Module::execPreprocessor(const char *infilename, llvm::raw_string_ostream *ostre
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(LLVM_3_1)
|
||||
inst.getLangOpts().BCPLComment = 1;
|
||||
#else
|
||||
inst.getLangOpts().LineComment = 1;
|
||||
#endif
|
||||
#if defined(LLVM_3_5)
|
||||
inst.createPreprocessor(clang::TU_Complete);
|
||||
#else
|
||||
inst.createPreprocessor();
|
||||
#endif
|
||||
|
||||
diagPrinter->BeginSourceFile(inst.getLangOpts(), &inst.getPreprocessor());
|
||||
clang::DoPrintPreprocessedInput(inst.getPreprocessor(),
|
||||
|
||||
Reference in New Issue
Block a user