diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-12-22 16:32:41 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-12-22 16:32:41 +0000 |
commit | 5cc639049574748b96c9806bb84680837917433e (patch) | |
tree | 0df81b55ccff281629cef66551578c9a4f2f61da /lib/MC/MachObjectWriter.cpp | |
parent | 3664564395ede7681fac8888a213ce3bf947bbb3 (diff) |
MC/Mach-O: Return to reporting errors if we see unexpected fixup kinds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122409 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MachObjectWriter.cpp')
-rw-r--r-- | lib/MC/MachObjectWriter.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp index 2cfd10b4d5..167cda78e4 100644 --- a/lib/MC/MachObjectWriter.cpp +++ b/lib/MC/MachObjectWriter.cpp @@ -34,17 +34,14 @@ using namespace llvm::object; // FIXME: this has been copied from (or to) X86AsmBackend.cpp static unsigned getFixupKindLog2Size(unsigned Kind) { switch (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!"); + default: + llvm_unreachable("invalid fixup kind!"); case FK_PCRel_1: case FK_Data_1: return 0; case FK_PCRel_2: case FK_Data_2: return 1; case FK_PCRel_4: + // FIXME: Remove these!!! case X86::reloc_riprel_4byte: case X86::reloc_riprel_4byte_movq_load: case X86::reloc_signed_4byte: |