diff options
author | David Blaikie <dblaikie@gmail.com> | 2017-01-05 19:11:36 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2017-01-05 19:11:36 +0000 |
commit | e3041688531925319b16b89e183e8ef275e2aeb0 (patch) | |
tree | 1d7e5462f2cea98fb96423848698008a6741920e /clang/lib/Frontend/CompilerInstance.cpp | |
parent | f95113dacf2b16a74dfb034a9cc32ba08cade14d (diff) | |
download | llvm-e3041688531925319b16b89e183e8ef275e2aeb0.zip llvm-e3041688531925319b16b89e183e8ef275e2aeb0.tar.gz llvm-e3041688531925319b16b89e183e8ef275e2aeb0.tar.bz2 |
Move PreprocessorOptions to std::shared_ptr from IntrusiveRefCntPtr
llvm-svn: 291160
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 9c4c2a67..10b8c7f 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -370,8 +370,9 @@ void CompilerInstance::createPreprocessor(TranslationUnitKind TUKind) { getDiagnostics(), getLangOpts(), &getTarget()); - PP = new Preprocessor(&getPreprocessorOpts(), getDiagnostics(), getLangOpts(), - getSourceManager(), *HeaderInfo, *this, PTHMgr, + PP = new Preprocessor(Invocation->getPreprocessorOptsPtr(), getDiagnostics(), + getLangOpts(), getSourceManager(), *HeaderInfo, *this, + PTHMgr, /*OwnsHeaderSearch=*/true, TUKind); PP->Initialize(getTarget(), getAuxTarget()); |