Equally to NetBSD, Bitrig/ARM uses the Itanium-ABI.
authorRenato Golin <renato.golin@linaro.org>
Fri, 27 Feb 2015 16:35:27 +0000 (16:35 +0000)
committerRenato Golin <renato.golin@linaro.org>
Fri, 27 Feb 2015 16:35:27 +0000 (16:35 +0000)
Patch by Patrick Wildt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230762 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
test/CodeGen/ARM/dwarf-eh.ll

index 66a1618c370a7436e7d9a992becab39ba0c8b870..caa873622ae9eea4c13202b5db2ddc4aaa7c7bca 100644 (file)
@@ -59,6 +59,7 @@ ARMELFMCAsmInfo::ARMELFMCAsmInfo(StringRef TT) {
 
   // Exceptions handling
   switch (TheTriple.getOS()) {
+  case Triple::Bitrig:
   case Triple::NetBSD:
     ExceptionsType = ExceptionHandling::DwarfCFI;
     break;
index 0b8a072ec95c9d2cd35fa06302003eca1594dfed..4bbfe8b74086dc09833dd4b9fadf46f936a9ce3f 100644 (file)
@@ -2,6 +2,10 @@
 ; RUN: FileCheck %s
 ; RUN: llc -mtriple=arm-netbsd-eabi -o - -filetype=asm %s \
 ; RUN: -relocation-model=pic | FileCheck -check-prefix=CHECK-PIC %s
+; RUN: llc -mtriple=armv7-bitrig-gnueabihf -o - -filetype=asm %s | \
+; RUN: FileCheck %s
+; RUN: llc -mtriple=armv7-bitrig-gnueabihf -o - -filetype=asm %s \
+; RUN: -relocation-model=pic | FileCheck -check-prefix=CHECK-PIC %s
 
 ; ModuleID = 'test.cc'
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:64-n32-S64"