summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-06-30 18:25:11 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-06-30 18:25:11 +0000
commitd86e8bb0ed5aefa6b18ffab88b8d542c95f52052 (patch)
tree94535e80931212ff5df25ef80ac53b8fb4bd6033 /llvm/lib/CodeGen
parent8b08d2c5c87bbb0cca4ee59987499f73e252068b (diff)
downloadbcm5719-llvm-d86e8bb0ed5aefa6b18ffab88b8d542c95f52052.tar.gz
bcm5719-llvm-d86e8bb0ed5aefa6b18ffab88b8d542c95f52052.zip
Delete MCCodeGenInfo.
MC doesn't really care about CodeGen stuff, so this was just complicating target initialization. llvm-svn: 274258
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index b164cad7d14..f6f9b740957 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -88,7 +88,10 @@ LLVMTargetMachine::LLVMTargetMachine(const Target &T,
Reloc::Model RM, CodeModel::Model CM,
CodeGenOpt::Level OL)
: TargetMachine(T, DataLayoutString, TT, CPU, FS, Options) {
- CodeGenInfo = T.createMCCodeGenInfo(TT.str(), RM, CM, OL);
+ T.adjustCodeGenOpts(TT, RM, CM);
+ this->RM = RM;
+ this->CMModel = CM;
+ this->OptLevel = OL;
}
TargetIRAnalysis LLVMTargetMachine::getTargetIRAnalysis() {
OpenPOWER on IntegriCloud