Fix for LLVM 3.1 and #441
This commit is contained in:
@@ -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;
|
inst.getLangOpts().LineComment = 1;
|
||||||
|
#endif
|
||||||
inst.createPreprocessor();
|
inst.createPreprocessor();
|
||||||
|
|
||||||
diagPrinter->BeginSourceFile(inst.getLangOpts(), &inst.getPreprocessor());
|
diagPrinter->BeginSourceFile(inst.getLangOpts(), &inst.getPreprocessor());
|
||||||
|
|||||||
Reference in New Issue
Block a user