diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-04-19 20:59:24 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-04-19 20:59:24 +0000 |
commit | e3de896b5eacae92858bbd14eb28a8842b46e6f5 (patch) | |
tree | 049d6533403ce2be427af6cea5738f622bf0e99c /llvm/lib/Target/PowerPC/PPCSubtarget.cpp | |
parent | f954a0f028739d40ff37aed3b6f00e150d05c78d (diff) | |
download | bcm5719-llvm-e3de896b5eacae92858bbd14eb28a8842b46e6f5.tar.gz bcm5719-llvm-e3de896b5eacae92858bbd14eb28a8842b46e6f5.zip |
Target/PPC: Kill off DarwinVers, which is now dead.
llvm-svn: 129811
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCSubtarget.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp index 2fd62a6b9c8..5f3aa2328f9 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp +++ b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp @@ -70,7 +70,6 @@ PPCSubtarget::PPCSubtarget(const std::string &TT, const std::string &FS, , HasSTFIWX(false) , HasLazyResolverStubs(false) , IsJITCodeModel(false) - , DarwinVers(0) , TargetTriple(TT) { // Determine default and user specified characteristics @@ -93,19 +92,6 @@ PPCSubtarget::PPCSubtarget(const std::string &TT, const std::string &FS, // support it, ignore. if (use64BitRegs() && !has64BitSupport()) 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. if (isDarwin()) |