Tracking ToT changes. Clang PP APIs changed.
This commit is contained in:
@@ -1827,17 +1827,24 @@ Module::execPreprocessor(const char *infilename, llvm::raw_string_ostream *ostre
|
|||||||
// track the source file position by handling them ourselves.
|
// track the source file position by handling them ourselves.
|
||||||
inst.getPreprocessorOutputOpts().ShowComments = 1;
|
inst.getPreprocessorOutputOpts().ShowComments = 1;
|
||||||
|
|
||||||
|
#if defined(LLVM_3_3)
|
||||||
|
inst.getPreprocessorOutputOpts().ShowCPP = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
clang::HeaderSearchOptions &headerOpts = inst.getHeaderSearchOpts();
|
clang::HeaderSearchOptions &headerOpts = inst.getHeaderSearchOpts();
|
||||||
headerOpts.UseBuiltinIncludes = 0;
|
headerOpts.UseBuiltinIncludes = 0;
|
||||||
headerOpts.UseStandardSystemIncludes = 0;
|
headerOpts.UseStandardSystemIncludes = 0;
|
||||||
headerOpts.UseStandardCXXIncludes = 0;
|
headerOpts.UseStandardCXXIncludes = 0;
|
||||||
if (g->debugPrint)
|
if (g->debugPrint)
|
||||||
headerOpts.Verbose = 1;
|
headerOpts.Verbose = 1;
|
||||||
for (int i = 0; i < (int)g->includePath.size(); ++i)
|
for (int i = 0; i < (int)g->includePath.size(); ++i) {
|
||||||
headerOpts.AddPath(g->includePath[i], clang::frontend::Angled,
|
headerOpts.AddPath(g->includePath[i], clang::frontend::Angled,
|
||||||
|
#if !defined(LLVM_3_3)
|
||||||
true /* is user supplied */,
|
true /* is user supplied */,
|
||||||
|
#endif
|
||||||
false /* not a framework */,
|
false /* not a framework */,
|
||||||
true /* ignore sys root */);
|
true /* ignore sys root */);
|
||||||
|
}
|
||||||
|
|
||||||
clang::PreprocessorOptions &opts = inst.getPreprocessorOpts();
|
clang::PreprocessorOptions &opts = inst.getPreprocessorOpts();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user