aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/MCTargetDesc
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-08-06 20:52:18 +0000
committerEric Christopher <echristo@apple.com>2012-08-06 20:52:18 +0000
commitb0f6759ab93b42570d71665b13d24ca2c4a5f276 (patch)
tree6920fa759c64cd88d004d81c19040160321f1dfa /lib/Target/X86/MCTargetDesc
parentf8f77466879d10638e9f790dd61851319f6daca9 (diff)
downloadexternal_llvm-b0f6759ab93b42570d71665b13d24ca2c4a5f276.zip
external_llvm-b0f6759ab93b42570d71665b13d24ca2c4a5f276.tar.gz
external_llvm-b0f6759ab93b42570d71665b13d24ca2c4a5f276.tar.bz2
Add support for the OpenBSD for Bitrig.
Patch by David Hill. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161344 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/MCTargetDesc')
-rw-r--r--lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp b/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
index 49c07f3..b0acd7d 100644
--- a/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
+++ b/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
@@ -91,9 +91,10 @@ X86ELFMCAsmInfo::X86ELFMCAsmInfo(const Triple &T) {
// Exceptions handling
ExceptionsType = ExceptionHandling::DwarfCFI;
- // OpenBSD has buggy support for .quad in 32-bit mode, just split into two
- // .words.
- if (T.getOS() == Triple::OpenBSD && T.getArch() == Triple::x86)
+ // OpenBSD and Bitrig have buggy support for .quad in 32-bit mode, just split
+ // into two .words.
+ if ((T.getOS() == Triple::OpenBSD || T.getOS() == Triple::Bitrig) &&
+ T.getArch() == Triple::x86)
Data64bitsDirective = 0;
}