diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-02-01 12:38:24 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-02-01 12:38:24 +0000 |
commit | ee642690ea9052e57cf09a798dda465d0c11db7f (patch) | |
tree | f659ad2a1e96228043209e9fe008bf61e3f1a48f /llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h | |
parent | 6ab86b1bb6bbffb6fdd6241cb87ac18c33b8453e (diff) | |
download | bcm5719-llvm-ee642690ea9052e57cf09a798dda465d0c11db7f.tar.gz bcm5719-llvm-ee642690ea9052e57cf09a798dda465d0c11db7f.zip |
[multiversion] Remove a false freedom to leave the TargetMachine pointer
null.
For some reason some of the original TTI code supported a null target
machine. This seems to have been legacy, and I made matters worse when
refactoring this code by spreading that pattern further through the
various targets.
The TargetMachine can't actually be null, and it doesn't make sense to
support that use case. I've now consistently removed it and removed all
of the code trying to cope with that situation. This is probably good,
as several targets *didn't* cope with it being null despite the null
default argument in their constructors. =]
llvm-svn: 227734
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h b/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h index 10d587ec376..cc780b6864b 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h +++ b/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h @@ -33,7 +33,7 @@ class PPCTTIImpl : public BasicTTIImplBase<PPCTTIImpl> { const PPCTargetLowering *TLI; public: - explicit PPCTTIImpl(const PPCTargetMachine *TM = nullptr) + explicit PPCTTIImpl(const PPCTargetMachine *TM) : BaseT(TM), ST(TM->getSubtargetImpl()), TLI(ST->getTargetLowering()) {} // Provide value semantics. MSVC requires that we spell all of these out. |