diff options
| author | Matthias Braun <matze@braunis.de> | 2017-10-12 22:57:28 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2017-10-12 22:57:28 +0000 |
| commit | bb8507e63c42212c3753c0df069ec16a52652247 (patch) | |
| tree | 8579aed34d69ff21da87b58f3376ad5f5282966f /llvm/tools/opt/opt.cpp | |
| parent | a2f9e3a60fb97bf82a1029207ee81221fe13b3d5 (diff) | |
| download | bcm5719-llvm-bb8507e63c42212c3753c0df069ec16a52652247.tar.gz bcm5719-llvm-bb8507e63c42212c3753c0df069ec16a52652247.zip | |
Revert "TargetMachine: Merge TargetMachine and LLVMTargetMachine"
Reverting to investigate layering effects of MCJIT not linking
libCodeGen but using TargetMachine::getNameWithPrefix() breaking the
lldb bots.
This reverts commit r315633.
llvm-svn: 315637
Diffstat (limited to 'llvm/tools/opt/opt.cpp')
| -rw-r--r-- | llvm/tools/opt/opt.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp index a736107965c..73f89c0e155 100644 --- a/llvm/tools/opt/opt.cpp +++ b/llvm/tools/opt/opt.cpp @@ -593,9 +593,10 @@ int main(int argc, char **argv) { } if (TM) { - Pass *TPC = TM->createPassConfig(Passes); - if (TPC) - Passes.add(TPC); + // FIXME: We should dyn_cast this when supported. + auto <M = static_cast<LLVMTargetMachine &>(*TM); + Pass *TPC = LTM.createPassConfig(Passes); + Passes.add(TPC); } // Create a new optimization pass for each one specified on the command line |

