[ARM64] Ensure arm64_be is dealt with when emitting debug info.
authorJames Molloy <james.molloy@arm.com>
Wed, 30 Apr 2014 10:15:35 +0000 (10:15 +0000)
committerJames Molloy <james.molloy@arm.com>
Wed, 30 Apr 2014 10:15:35 +0000 (10:15 +0000)
This is a partial port of r204816 (cpirker "Elf support for MC-JIT
runtime dynamic linker") from AArch64 to ARM64.

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

lib/MC/MCObjectFileInfo.cpp
test/CodeGen/AArch64/pic-eh-stubs.ll

index ba132f450fbed4585a2a8e01566d0aec02199746..4abdde1aa1787a1c3b4a98893fa52123587e0937 100644 (file)
@@ -291,7 +291,8 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) {
     }
   } else if (T.getArch() == Triple::aarch64 ||
              T.getArch() == Triple::aarch64_be ||
-             T.getArch() == Triple::arm64) {
+             T.getArch() == Triple::arm64 ||
+             T.getArch() == Triple::arm64_be) {
     // The small model guarantees static code/data size < 4GB, but not where it
     // will be in memory. Most of these could end up >2GB away so even a signed
     // pc-relative 32-bit address is insufficient, theoretically.
index 6a7788ddf4cc351d294a7939160e594bf8a18c17..399d1c1123fb4c3dbf2956911452237f5eb3c0b8 100644 (file)
@@ -1,6 +1,7 @@
 ; RUN: llc -mtriple=aarch64-none-linux-gnu -relocation-model=pic -o - %s | FileCheck %s
 ; RUN: llc -mtriple=aarch64_be-none-linux-gnu -relocation-model=pic -o - %s | FileCheck %s
 ; RUN: llc -mtriple=arm64-none-linux-gnu -relocation-model=pic -o - %s | FileCheck %s
+; RUN: llc -mtriple=arm64_be-none-linux-gnu -relocation-model=pic -o - %s | FileCheck %s
 
 ; Make sure exception-handling PIC code can be linked correctly. An alternative
 ; to the sequence described below would have .gcc_except_table itself writable