]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
ARM: fail less catastrophically on invalid Windows input
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 22 Jan 2015 04:03:32 +0000 (04:03 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 22 Jan 2015 04:03:32 +0000 (04:03 +0000)
commit3f6dea4864a6ba90e004946278dd6291991507b9
tree35b574b567e9847fbfea20c37fcdf383a7590c06
parentac76e02882d94c1cda499916d1696968a5428478
ARM: fail less catastrophically on invalid Windows input

Windows supports a restricted set of relocations (compared to ARM ELF).  In some
cases, we may end up generating an unsupported relocation.  This can occur with
bad input to the assembler in particular (the frontend should never generate
code that cannot be compiled).  Generate an error rather than just aborting.

The change in the API is driven by the desire to provide a slightly more helpful
message for debugging purposes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226779 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCWinCOFFObjectWriter.h
lib/MC/WinCOFFObjectWriter.cpp
lib/Target/ARM/MCTargetDesc/ARMWinCOFFObjectWriter.cpp
lib/Target/X86/MCTargetDesc/X86WinCOFFObjectWriter.cpp
test/MC/ARM/Windows/invalid-relocation.s [new file with mode: 0644]