diff options
author | Renato Golin <renato.golin@linaro.org> | 2017-03-18 12:31:32 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2017-03-18 12:31:32 +0000 |
commit | f1966cf6467e60c60d1c3fe6fa8b669d79ecf8e9 (patch) | |
tree | b2ada42a7d0c7f06002a987e9e75d0c0ec4ec64f /clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp | |
parent | e6ff30b696739aca2e86484750c68dce113712a1 (diff) | |
download | bcm5719-llvm-f1966cf6467e60c60d1c3fe6fa8b669d79ecf8e9.tar.gz bcm5719-llvm-f1966cf6467e60c60d1c3fe6fa8b669d79ecf8e9.zip |
Revert "Modules: Cache PCMs in memory and avoid a use-after-free"
This reverts commit r298165, as it broke the ARM builds.
llvm-svn: 298185
Diffstat (limited to 'clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp')
-rw-r--r-- | clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp b/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp index b635604e098..dccfffdb2c1 100644 --- a/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp +++ b/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp @@ -12,7 +12,6 @@ #include "clang/Basic/DiagnosticOptions.h" #include "clang/Basic/FileManager.h" #include "clang/Basic/LangOptions.h" -#include "clang/Basic/MemoryBufferCache.h" #include "clang/Basic/SourceManager.h" #include "clang/Basic/TargetInfo.h" #include "clang/Basic/TargetOptions.h" @@ -94,11 +93,10 @@ TEST_F(PPConditionalDirectiveRecordTest, PPRecAPI) { SourceMgr.setMainFileID(SourceMgr.createFileID(std::move(Buf))); VoidModuleLoader ModLoader; - MemoryBufferCache PCMCache; HeaderSearch HeaderInfo(std::make_shared<HeaderSearchOptions>(), SourceMgr, Diags, LangOpts, Target.get()); Preprocessor PP(std::make_shared<PreprocessorOptions>(), Diags, LangOpts, - SourceMgr, PCMCache, HeaderInfo, ModLoader, + SourceMgr, HeaderInfo, ModLoader, /*IILookup =*/nullptr, /*OwnsHeaderSearch =*/false); PP.Initialize(*Target); |