diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-05 16:11:31 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-05 16:11:31 +0000 |
commit | 6fd71c651255b750de67ee25e0a2e91e61a23e11 (patch) | |
tree | bc8ff483ba56044eb5d1edffc4a95c87d02b731b /llvm/lib/Target/X86/X86Subtarget.cpp | |
parent | db04a9e967372770cfbde61193a9ce35770379b8 (diff) | |
download | bcm5719-llvm-6fd71c651255b750de67ee25e0a2e91e61a23e11.tar.gz bcm5719-llvm-6fd71c651255b750de67ee25e0a2e91e61a23e11.zip |
Use a dedicated IsLinux flag instead of an ELFLinux TargetType.
llvm-svn: 50649
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86Subtarget.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.cpp b/llvm/lib/Target/X86/X86Subtarget.cpp index e555079738f..cb07b0d45f8 100644 --- a/llvm/lib/Target/X86/X86Subtarget.cpp +++ b/llvm/lib/Target/X86/X86Subtarget.cpp @@ -279,7 +279,9 @@ X86Subtarget::X86Subtarget(const Module &M, const std::string &FS, bool is64Bit) else DarwinVers = 8; // Minimum supported darwin is Tiger. } else if (TT.find("linux") != std::string::npos) { - TargetType = isELFLinux; + // Linux doesn't imply ELF, but we don't currently support anything else. + TargetType = isELF; + IsLinux = true; } else if (TT.find("cygwin") != std::string::npos) { TargetType = isCygwin; } else if (TT.find("mingw") != std::string::npos) { @@ -306,7 +308,8 @@ X86Subtarget::X86Subtarget(const Module &M, const std::string &FS, bool is64Bit) TargetType = isWindows; #elif defined(__linux__) // Linux doesn't imply ELF, but we don't currently support anything else. - TargetType = isELFLinux; + TargetType = isELF; + IsLinux = true; #endif } |