summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2014-04-30 10:15:35 +0000
committerJames Molloy <james.molloy@arm.com>2014-04-30 10:15:35 +0000
commitc447befac4eb8f914292a2d95041fd4165bd26e3 (patch)
treecc5cf04ae42e6168f17b9c96042ddb7671756ea3 /lib
parent5f4aba6c8a73b51f583da7f4823c04531bfeb2ab (diff)
downloadllvm-c447befac4eb8f914292a2d95041fd4165bd26e3.tar.gz
llvm-c447befac4eb8f914292a2d95041fd4165bd26e3.tar.bz2
llvm-c447befac4eb8f914292a2d95041fd4165bd26e3.tar.xz
[ARM64] Ensure arm64_be is dealt with when emitting debug info.
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
Diffstat (limited to 'lib')
-rw-r--r--lib/MC/MCObjectFileInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MC/MCObjectFileInfo.cpp b/lib/MC/MCObjectFileInfo.cpp
index ba132f450f..4abdde1aa1 100644
--- a/lib/MC/MCObjectFileInfo.cpp
+++ b/lib/MC/MCObjectFileInfo.cpp
@@ -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.