forked from OSchip/llvm-project
[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.
This commit is contained in:
parent
72517e27c1
commit
985eaa1a3d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue