Remove the bare getSubtargetImpl call from the PPC port. As part

of this add a test that shows we can generate code with
for functions that differ by subtarget feature.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232882 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher
2015-03-21 03:36:02 +00:00
parent f2b4a7f862
commit bc473edd7b
3 changed files with 44 additions and 5 deletions

View File

@@ -163,8 +163,7 @@ PPCTargetMachine::PPCTargetMachine(const Target &T, StringRef TT, StringRef CPU,
: LLVMTargetMachine(T, getDataLayoutString(Triple(TT)), TT, CPU,
computeFSAdditions(FS, OL, TT), Options, RM, CM, OL),
TLOF(createTLOF(Triple(getTargetTriple()))),
TargetABI(computeTargetABI(Triple(TT), Options)),
Subtarget(TT, CPU, TargetFS, *this) {
TargetABI(computeTargetABI(Triple(TT), Options)) {
initAsmInfo();
}