diff options
author | Tim Northover <tnorthover@apple.com> | 2014-04-16 11:52:55 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-04-16 11:52:55 +0000 |
commit | 3ec1de7767610752e990f9e05b51cafd97450f69 (patch) | |
tree | 52ee57ad9e27ccb6712c741488d66599ae88e2c0 /llvm/lib/MC/MCObjectFileInfo.cpp | |
parent | 18f68f6d1a21ed26d4c80e344b7b4a5d20b49ac5 (diff) | |
download | bcm5719-llvm-3ec1de7767610752e990f9e05b51cafd97450f69.tar.gz bcm5719-llvm-3ec1de7767610752e990f9e05b51cafd97450f69.zip |
AArch64/ARM64: port across stub handling for ELF C++ exceptions.
The most important part here is that we should actuall emit the stubs we refer
to in the exception table, but as a side issue this uses more sensible & GCC
compatible representations for some of the bits of information.
llvm-svn: 206380
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r-- | llvm/lib/MC/MCObjectFileInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp index 3aa13ef465d..26d2b61d589 100644 --- a/llvm/lib/MC/MCObjectFileInfo.cpp +++ b/llvm/lib/MC/MCObjectFileInfo.cpp @@ -289,8 +289,9 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) { TTypeEncoding = (CMModel == CodeModel::Small) ? dwarf::DW_EH_PE_udata4 : dwarf::DW_EH_PE_absptr; } - } else if (T.getArch() == Triple::aarch64 || - T.getArch() == Triple::aarch64_be ) { + } else if (T.getArch() == Triple::aarch64 || + T.getArch() == Triple::aarch64_be || + T.getArch() == Triple::arm64) { // 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. |