summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b7cd35b)
raw | patch | inline | side by side (parent: b7cd35b)
author | Eric Christopher <echristo@gmail.com> | |
Wed, 8 Oct 2014 07:51:41 +0000 (07:51 +0000) | ||
committer | Eric Christopher <echristo@gmail.com> | |
Wed, 8 Oct 2014 07:51:41 +0000 (07:51 +0000) |
TargetMachine again.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219285 91177308-0d34-0410-b5e6-96231b3b80d8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219285 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineFunction.cpp | patch | blob | history |
index 97a0c93b48ba0ee6d71a94e7f55d1ad8d56b0091..6a304abef2dd2558dc2f6ccbbb4d692686cfdba5 100644 (file)
GCModuleInfo *gmi)
: Fn(F), Target(TM), STI(TM.getSubtargetImpl()), Ctx(mmi.getContext()),
MMI(mmi), GMI(gmi) {
- if (TM.getSubtargetImpl()->getRegisterInfo())
+ if (STI->getRegisterInfo())
RegInfo = new (Allocator) MachineRegisterInfo(this);
else
RegInfo = nullptr;
getStackAlignment(AttributeSet::FunctionIndex));
ConstantPool = new (Allocator) MachineConstantPool(TM);
- Alignment =
- TM.getSubtargetImpl()->getTargetLowering()->getMinFunctionAlignment();
+ Alignment = STI->getTargetLowering()->getMinFunctionAlignment();
// FIXME: Shouldn't use pref alignment if explicit alignment is set on Fn.
if (!Fn->getAttributes().hasAttribute(AttributeSet::FunctionIndex,
Attribute::OptimizeForSize))
- Alignment = std::max(
- Alignment,
- TM.getSubtargetImpl()->getTargetLowering()->getPrefFunctionAlignment());
+ Alignment = std::max(Alignment,
+ STI->getTargetLowering()->getPrefFunctionAlignment());
FunctionNumber = FunctionNum;
JumpTableInfo = nullptr;