diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-12-02 00:28:45 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-12-02 00:28:45 +0000 |
commit | dff84b03258514463ede477af38f1246b95b0cd0 (patch) | |
tree | 2423bab04c5113b7ce4524a26f26b000017d605d /lib/MC/MachObjectWriter.cpp | |
parent | 317bafb82cf7ecf796ba4e5c6279a423f535a4e9 (diff) |
Add support for binary encoding of ARM 'adr' instructions referencing constant
pool entries (LEApcrel pseudo). Ongoing saga of rdar://8542291.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120635 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MachObjectWriter.cpp')
-rw-r--r-- | lib/MC/MachObjectWriter.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp index 45d2ff7491..60b38dc521 100644 --- a/lib/MC/MachObjectWriter.cpp +++ b/lib/MC/MachObjectWriter.cpp @@ -31,7 +31,12 @@ using namespace llvm::object; // FIXME: this has been copied from (or to) X86AsmBackend.cpp static unsigned getFixupKindLog2Size(unsigned Kind) { switch (Kind) { - default: llvm_unreachable("invalid fixup kind!"); + // FIXME: Until ARM has it's own relocation stuff spun off, it comes + // through here and we don't want it to puke all over. Any reasonable + // values will only come when ARM relocation support gets added, at which + // point this will be X86 only again and the llvm_unreachable can be + // re-enabled. + default: return 0;// llvm_unreachable("invalid fixup kind!"); case FK_PCRel_1: case FK_Data_1: return 0; case FK_PCRel_2: |