aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorYuanfang Chen <yuanfang.chen@sony.com>2020-07-07 09:39:55 -0700
committerYuanfang Chen <yuanfang.chen@sony.com>2020-07-20 10:43:28 -0700
commitefcb8a190395ad35dcd6931b16c7b0bd1ccd37cf (patch)
treefa103204c98cf091b98d85c356ffd5625825316b /llvm/lib/CodeGen/LLVMTargetMachine.cpp
parent589c646a7e5fb03223340476f7ffb67fd9628726 (diff)
downloadllvm-efcb8a190395ad35dcd6931b16c7b0bd1ccd37cf.zip
llvm-efcb8a190395ad35dcd6931b16c7b0bd1ccd37cf.tar.gz
llvm-efcb8a190395ad35dcd6931b16c7b0bd1ccd37cf.tar.bz2
[NFC] remove unneeded TargetLoweringObjectFile init after 85c30f3374d9
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index b485f2c..e94b7ed 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -196,18 +196,9 @@ bool LLVMTargetMachine::addPassesToEmitFile(
if (!PassConfig)
return true;
- if (!TargetPassConfig::willCompleteCodeGenPipeline()) {
- if (this->getTargetTriple().isOSAIX()) {
- // On AIX, we might manifest MCSymbols during SDAG lowering. For MIR
- // testing to be meaningful, we need to ensure that the symbols created
- // are MCSymbolXCOFF variants, which requires that
- // the TargetLoweringObjectFile instance has been initialized.
- MCContext &Ctx = MMIWP->getMMI().getContext();
- const_cast<TargetLoweringObjectFile &>(*this->getObjFileLowering())
- .Initialize(Ctx, *this);
- }
+ if (!TargetPassConfig::willCompleteCodeGenPipeline())
PM.add(createPrintMIRPass(Out));
- } else if (addAsmPrinter(PM, Out, DwoOut, FileType,
+ else if (addAsmPrinter(PM, Out, DwoOut, FileType,
MMIWP->getMMI().getContext()))
return true;