aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ObjectFilePCHContainerWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerWriter.cpp')
-rw-r--r--clang/lib/CodeGen/ObjectFilePCHContainerWriter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/ObjectFilePCHContainerWriter.cpp b/clang/lib/CodeGen/ObjectFilePCHContainerWriter.cpp
index 02635ce..788c8b9 100644
--- a/clang/lib/CodeGen/ObjectFilePCHContainerWriter.cpp
+++ b/clang/lib/CodeGen/ObjectFilePCHContainerWriter.cpp
@@ -322,16 +322,16 @@ public:
// Print the IR for the PCH container to the debug output.
llvm::SmallString<0> Buffer;
clang::emitBackendOutput(
- CI, Ctx.getTargetInfo().getDataLayoutString(), M.get(),
+ CI, CodeGenOpts, Ctx.getTargetInfo().getDataLayoutString(), M.get(),
BackendAction::Backend_EmitLL, FS,
std::make_unique<llvm::raw_svector_ostream>(Buffer));
llvm::dbgs() << Buffer;
});
// Use the LLVM backend to emit the pch container.
- clang::emitBackendOutput(CI, Ctx.getTargetInfo().getDataLayoutString(),
- M.get(), BackendAction::Backend_EmitObj, FS,
- std::move(OS));
+ clang::emitBackendOutput(CI, CodeGenOpts,
+ Ctx.getTargetInfo().getDataLayoutString(), M.get(),
+ BackendAction::Backend_EmitObj, FS, std::move(OS));
// Free the memory for the temporary buffer.
llvm::SmallVector<char, 0> Empty;