diff options
author | Daniel Grumberg <dgrumberg@apple.com> | 2022-03-30 20:38:09 +0100 |
---|---|---|
committer | Daniel Grumberg <dgrumberg@apple.com> | 2022-03-30 20:38:09 +0100 |
commit | 985eaa1a3da2a1b88ea70a65ffd5783aa82ea65e (patch) | |
tree | 6d5f2ecf5292fb10ef42ba11b9a86910b6928bef /clang/lib/ExtractAPI/ExtractAPIConsumer.cpp | |
parent | 72517e27c1e28eb6781b0cdb9a32a477e83cae24 (diff) | |
download | llvm-985eaa1a3da2a1b88ea70a65ffd5783aa82ea65e.zip llvm-985eaa1a3da2a1b88ea70a65ffd5783aa82ea65e.tar.gz llvm-985eaa1a3da2a1b88ea70a65ffd5783aa82ea65e.tar.bz2 |
[clang][extract-api][NFC] Don't remap the generated input buffer in PPOpts
This was triggering some build failures so removing this change for now.
Diffstat (limited to 'clang/lib/ExtractAPI/ExtractAPIConsumer.cpp')
-rw-r--r-- | clang/lib/ExtractAPI/ExtractAPIConsumer.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp b/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp index 266acff..cf95c3d 100644 --- a/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp +++ b/clang/lib/ExtractAPI/ExtractAPIConsumer.cpp @@ -617,17 +617,13 @@ bool ExtractAPIAction::PrepareToExecuteAction(CompilerInstance &CI) { HeaderContents += "\"\n"; } - auto Buffer = llvm::MemoryBuffer::getMemBufferCopy(HeaderContents, - getInputBufferName()); + Buffer = llvm::MemoryBuffer::getMemBufferCopy(HeaderContents, + getInputBufferName()); // Set that buffer up as our "real" input in the CompilerInstance. Inputs.clear(); Inputs.emplace_back(Buffer->getMemBufferRef(), Kind, /*IsSystem*/ false); - // Tell the processor about the input file. - CI.getPreprocessorOpts().addRemappedFile(Buffer->getBufferIdentifier(), - Buffer.release()); - return true; } |