support LLVM trunk after 203559 203213 and 203381 revisions

This commit is contained in:
Ilia Filippov
2014-03-12 12:58:50 +04:00
parent e1524891fc
commit ead5cc741d
3 changed files with 23 additions and 6 deletions

View File

@@ -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(),