diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-09-01 23:39:15 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-09-01 23:39:15 +0000 |
commit | 998b3d3e8528ebd9d2c5d78d3a82edd90a8953a4 (patch) | |
tree | ccd8215b16e0f4c088e7537c5e888af60a659805 /lib/Frontend/CompilerInstance.cpp | |
parent | db44a6b00768a14e8a4d388d67edef61a1ae2d63 (diff) |
Allow the preprocessor to be constructed without performing target-
and language-specific initialization. Use this to allow ASTUnit to
create a preprocessor object *before* loading the AST file. No actual
functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138983 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | lib/Frontend/CompilerInstance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index 344e77b63b..de950da45c 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -200,7 +200,7 @@ void CompilerInstance::createPreprocessor() { // Create the Preprocessor. HeaderSearch *HeaderInfo = new HeaderSearch(getFileManager()); - PP = new Preprocessor(getDiagnostics(), getLangOpts(), getTarget(), + PP = new Preprocessor(getDiagnostics(), getLangOpts(), &getTarget(), getSourceManager(), *HeaderInfo, *this, PTHMgr, /*OwnsHeaderSearch=*/true); |