Use the cached subtargets and remove calls to getSubtarget/getSubtargetImpl

without a Function argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227622 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher
2015-01-30 22:02:31 +00:00
parent a60636bffb
commit 5882e66f5b
9 changed files with 152 additions and 172 deletions

View File

@@ -372,7 +372,8 @@ namespace llvm {
const PPCSubtarget &Subtarget;
public:
explicit PPCTargetLowering(const PPCTargetMachine &TM);
explicit PPCTargetLowering(const PPCTargetMachine &TM,
const PPCSubtarget &STI);
/// getTargetNodeName() - This method returns the name of a target specific
/// DAG node.