aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTOBackend.cpp
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2020-09-08 16:42:16 -0700
committerMircea Trofin <mtrofin@google.com>2020-09-08 17:14:44 -0700
commit4013bab9c4a5fe634be6271779a99bc158c3e396 (patch)
tree621a2d8f5c8a5acd4e54a849f7a29d1b46861a6b /llvm/lib/LTO/LTOBackend.cpp
parent055d2095898dfbb58b71322c02fbba7e71e8f76a (diff)
downloadllvm-4013bab9c4a5fe634be6271779a99bc158c3e396.zip
llvm-4013bab9c4a5fe634be6271779a99bc158c3e396.tar.gz
llvm-4013bab9c4a5fe634be6271779a99bc158c3e396.tar.bz2
[NFC][ThinLTO] EmbedBitcodeSection doesn't need the Config
Instead, passing in the command line options, initialized to nullptr. In an upcoming patch, we can then use the parameter to pass actual command line options. Differential Revision: https://reviews.llvm.org/D87336
Diffstat (limited to 'llvm/lib/LTO/LTOBackend.cpp')
-rw-r--r--llvm/lib/LTO/LTOBackend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/LTO/LTOBackend.cpp b/llvm/lib/LTO/LTOBackend.cpp
index ca29548..65d8669 100644
--- a/llvm/lib/LTO/LTOBackend.cpp
+++ b/llvm/lib/LTO/LTOBackend.cpp
@@ -350,7 +350,7 @@ static cl::opt<bool> EmbedBitcode(
"lto-embed-bitcode", cl::init(false),
cl::desc("Embed LLVM bitcode in object files produced by LTO"));
-static void EmitBitcodeSection(Module &M, const Config &Conf) {
+static void EmitBitcodeSection(Module &M) {
if (!EmbedBitcode)
return;
SmallVector<char, 0> Buffer;
@@ -369,7 +369,7 @@ void codegen(const Config &Conf, TargetMachine *TM, AddStreamFn AddStream,
if (Conf.PreCodeGenModuleHook && !Conf.PreCodeGenModuleHook(Task, Mod))
return;
- EmitBitcodeSection(Mod, Conf);
+ EmitBitcodeSection(Mod);
std::unique_ptr<ToolOutputFile> DwoOut;
SmallString<1024> DwoFile(Conf.SplitDwarfOutput);