Target/PPC: Kill off DarwinVers, which is now dead.
llvm-svn: 129811
This commit is contained in:
parent
f954a0f028
commit
e3de896b5e
|
@ -70,7 +70,6 @@ PPCSubtarget::PPCSubtarget(const std::string &TT, const std::string &FS,
|
||||||
, HasSTFIWX(false)
|
, HasSTFIWX(false)
|
||||||
, HasLazyResolverStubs(false)
|
, HasLazyResolverStubs(false)
|
||||||
, IsJITCodeModel(false)
|
, IsJITCodeModel(false)
|
||||||
, DarwinVers(0)
|
|
||||||
, TargetTriple(TT) {
|
, TargetTriple(TT) {
|
||||||
|
|
||||||
// Determine default and user specified characteristics
|
// Determine default and user specified characteristics
|
||||||
|
@ -93,19 +92,6 @@ PPCSubtarget::PPCSubtarget(const std::string &TT, const std::string &FS,
|
||||||
// support it, ignore.
|
// support it, ignore.
|
||||||
if (use64BitRegs() && !has64BitSupport())
|
if (use64BitRegs() && !has64BitSupport())
|
||||||
Use64BitRegs = false;
|
Use64BitRegs = false;
|
||||||
|
|
||||||
// Set the boolean corresponding to the current target triple, or the default
|
|
||||||
// if one cannot be determined, to true.
|
|
||||||
if (TT.length() > 7) {
|
|
||||||
// Determine which version of darwin this is.
|
|
||||||
size_t DarwinPos = TT.find("-darwin");
|
|
||||||
if (DarwinPos != std::string::npos) {
|
|
||||||
if (isdigit(TT[DarwinPos+7]))
|
|
||||||
DarwinVers = atoi(&TT[DarwinPos+7]);
|
|
||||||
else
|
|
||||||
DarwinVers = 8; // Minimum supported darwin is Tiger.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set up darwin-specific properties.
|
// Set up darwin-specific properties.
|
||||||
if (isDarwin())
|
if (isDarwin())
|
||||||
|
|
|
@ -66,10 +66,6 @@ protected:
|
||||||
bool HasLazyResolverStubs;
|
bool HasLazyResolverStubs;
|
||||||
bool IsJITCodeModel;
|
bool IsJITCodeModel;
|
||||||
|
|
||||||
/// DarwinVers - Nonzero if this is a darwin platform. Otherwise, the numeric
|
|
||||||
/// version of the platform, e.g. 8 = 10.4 (Tiger), 9 = 10.5 (Leopard), etc.
|
|
||||||
unsigned char DarwinVers; // Is any darwin-ppc platform.
|
|
||||||
|
|
||||||
/// TargetTriple - What processor and OS we're targeting.
|
/// TargetTriple - What processor and OS we're targeting.
|
||||||
Triple TargetTriple;
|
Triple TargetTriple;
|
||||||
|
|
||||||
|
@ -142,12 +138,7 @@ public:
|
||||||
const Triple &getTargetTriple() const { return TargetTriple; }
|
const Triple &getTargetTriple() const { return TargetTriple; }
|
||||||
|
|
||||||
/// isDarwin - True if this is any darwin platform.
|
/// isDarwin - True if this is any darwin platform.
|
||||||
bool isDarwin() const { return DarwinVers != 0; }
|
bool isDarwin() const { return TargetTriple.isOSX(); }
|
||||||
/// isDarwin - True if this is darwin9 (leopard, 10.5) or above.
|
|
||||||
bool isDarwin9() const { return DarwinVers >= 9; }
|
|
||||||
|
|
||||||
/// getDarwinVers - Return the darwin version number, 8 = tiger, 9 = leopard.
|
|
||||||
unsigned getDarwinVers() const { return DarwinVers; }
|
|
||||||
|
|
||||||
bool isDarwinABI() const { return isDarwin(); }
|
bool isDarwinABI() const { return isDarwin(); }
|
||||||
bool isSVR4ABI() const { return !isDarwin(); }
|
bool isSVR4ABI() const { return !isDarwin(); }
|
||||||
|
|
Loading…
Reference in New Issue