diff options
| author | Matthias Braun <matze@braunis.de> | 2017-10-12 22:28:54 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2017-10-12 22:28:54 +0000 |
| commit | 3a9c114b2418472b16276e95d3f657735926dddb (patch) | |
| tree | 60dfd37bb4af251fc65d401a74853b0534bcf59a /llvm/lib/CodeGen/TargetPassConfig.cpp | |
| parent | 150b7d6f559783d076c742e9aafc6004b31aa3e0 (diff) | |
| download | bcm5719-llvm-3a9c114b2418472b16276e95d3f657735926dddb.tar.gz bcm5719-llvm-3a9c114b2418472b16276e95d3f657735926dddb.zip | |
TargetMachine: Merge TargetMachine and LLVMTargetMachine
Merge LLVMTargetMachine into TargetMachine.
- There is no in-tree target anymore that just implements TargetMachine
but not LLVMTargetMachine.
- It should still be possible to stub out all the various functions in
case a target does not want to use lib/CodeGen
- This simplifies the code and avoids methods ending up in the wrong
interface.
Differential Revision: https://reviews.llvm.org/D38489
llvm-svn: 315633
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/TargetPassConfig.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp index c5101b1ecfc..0f6d152cee9 100644 --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -355,7 +355,7 @@ void TargetPassConfig::setStartStopPasses() { // Out of line constructor provides default values for pass options and // registers all common codegen passes. -TargetPassConfig::TargetPassConfig(LLVMTargetMachine &TM, PassManagerBase &pm) +TargetPassConfig::TargetPassConfig(TargetMachine &TM, PassManagerBase &pm) : ImmutablePass(ID), PM(&pm), TM(&TM) { Impl = new PassConfigImpl(); @@ -408,7 +408,7 @@ void TargetPassConfig::insertPass(AnalysisID TargetPassID, /// addPassToEmitX methods for generating a pipeline of CodeGen passes. /// /// Targets may override this to extend TargetPassConfig. -TargetPassConfig *LLVMTargetMachine::createPassConfig(PassManagerBase &PM) { +TargetPassConfig *TargetMachine::createPassConfig(PassManagerBase &PM) { return new TargetPassConfig(*this, PM); } |

