summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-05 18:12:37 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-05 18:12:37 +0000
commit4cc1feff4f01388fef617e07390f0ab2afa5c366 (patch)
treea4ceb716eafea09ca307953b1c11f1cec86c0e32 /llvm
parentdf7ea32af71979d0ac389c332cfb135d6eef0439 (diff)
downloadbcm5719-llvm-4cc1feff4f01388fef617e07390f0ab2afa5c366.tar.gz
bcm5719-llvm-4cc1feff4f01388fef617e07390f0ab2afa5c366.zip
Remove some dead code.
llvm-svn: 78219
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/ARM/ARMSubtarget.cpp4
-rw-r--r--llvm/lib/Target/PowerPC/PPCSubtarget.cpp9
-rw-r--r--llvm/lib/Target/X86/X86Subtarget.cpp23
3 files changed, 1 insertions, 35 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.cpp b/llvm/lib/Target/ARM/ARMSubtarget.cpp
index 4e706c5b39c..ba63ff42caf 100644
--- a/llvm/lib/Target/ARM/ARMSubtarget.cpp
+++ b/llvm/lib/Target/ARM/ARMSubtarget.cpp
@@ -81,10 +81,6 @@ ARMSubtarget::ARMSubtarget(const std::string &TT, const std::string &FS,
if (TT.find("-darwin") != std::string::npos)
// arm-darwin
TargetType = isDarwin;
- } else if (TT.empty()) {
-#if defined(__APPLE__)
- TargetType = isDarwin;
-#endif
}
if (TT.find("eabi") != std::string::npos)
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
index e0937e21c10..ef17105160e 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
+++ b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
@@ -103,15 +103,6 @@ PPCSubtarget::PPCSubtarget(const std::string &TT, const std::string &FS,
else
DarwinVers = 8; // Minimum supported darwin is Tiger.
}
- } else if (TT.empty()) {
- // Try to autosense the subtarget from the host compiler.
-#if defined(__APPLE__)
-#if __APPLE_CC__ > 5400
- DarwinVers = 9; // GCC 5400+ is Leopard.
-#else
- DarwinVers = 8; // Minimum supported darwin is Tiger.
-#endif
-#endif
}
// Set up darwin-specific properties.
diff --git a/llvm/lib/Target/X86/X86Subtarget.cpp b/llvm/lib/Target/X86/X86Subtarget.cpp
index f3a8d75c8a0..9052b33e6e7 100644
--- a/llvm/lib/Target/X86/X86Subtarget.cpp
+++ b/llvm/lib/Target/X86/X86Subtarget.cpp
@@ -458,31 +458,10 @@ X86Subtarget::X86Subtarget(const std::string &TT, const std::string &FS,
TargetType = isWindows;
} else if (TT.find("windows") != std::string::npos) {
TargetType = isWindows;
- }
- else if (TT.find("-cl") != std::string::npos) {
+ } else if (TT.find("-cl") != std::string::npos) {
TargetType = isDarwin;
DarwinVers = 9;
}
- } else if (TT.empty()) {
-#if defined(__CYGWIN__)
- TargetType = isCygwin;
-#elif defined(__MINGW32__) || defined(__MINGW64__)
- TargetType = isMingw;
-#elif defined(__APPLE__)
- TargetType = isDarwin;
-#if __APPLE_CC__ > 5400
- DarwinVers = 9; // GCC 5400+ is Leopard.
-#else
- DarwinVers = 8; // Minimum supported darwin is Tiger.
-#endif
-
-#elif defined(_WIN32) || defined(_WIN64)
- TargetType = isWindows;
-#elif defined(__linux__)
- // Linux doesn't imply ELF, but we don't currently support anything else.
- TargetType = isELF;
- IsLinux = true;
-#endif
}
// If the asm syntax hasn't been overridden on the command line, use whatever
OpenPOWER on IntegriCloud