Fix for LLVM 3.1 and #441

This commit is contained in:
Dmitry Babokin
2013-03-12 21:13:08 +04:00
parent 01992006b2
commit f2dcad27bb

View File

@@ -1897,7 +1897,11 @@ 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
inst.createPreprocessor();
diagPrinter->BeginSourceFile(inst.getLangOpts(), &inst.getPreprocessor());