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 | 600bf16cf7b1667f85c8531432aae0dd23d553ab (patch) | |
tree | 1c0995314ad061005e04f66b6678e4ef046e478e /lib/Target/X86/X86Subtarget.cpp | |
parent | a779a9899a5e23bd5198973f4709d66cb4bc2e64 (diff) |
Use a dedicated IsLinux flag instead of an ELFLinux TargetType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50649 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.cpp')
-rw-r--r-- | lib/Target/X86/X86Subtarget.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index e555079738..cb07b0d45f 100644 --- a/lib/Target/X86/X86Subtarget.cpp +++ b/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 } |