Remove the default subtarget from the Power port. It's unnecessary and harmful if used.

llvm-svn: 299726
This commit is contained in:
Eric Christopher 2017-04-06 23:01:30 +00:00
parent 740fe1a6eb
commit 380611addc
2 changed files with 1 additions and 4 deletions

View File

@ -218,9 +218,7 @@ PPCTargetMachine::PPCTargetMachine(const Target &T, const Triple &TT,
computeFSAdditions(FS, OL, TT), Options,
getEffectiveRelocModel(TT, RM), CM, OL),
TLOF(createTLOF(getTargetTriple())),
TargetABI(computeTargetABI(TT, Options)),
Subtarget(TargetTriple, CPU, computeFSAdditions(FS, OL, TT), *this) {
TargetABI(computeTargetABI(TT, Options)) {
initAsmInfo();
}

View File

@ -29,7 +29,6 @@ public:
private:
std::unique_ptr<TargetLoweringObjectFile> TLOF;
PPCABI TargetABI;
PPCSubtarget Subtarget;
mutable StringMap<std::unique_ptr<PPCSubtarget>> SubtargetMap;