ARM IAS: support .thumb_set
authorSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 17 Mar 2014 17:13:54 +0000 (17:13 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 17 Mar 2014 17:13:54 +0000 (17:13 +0000)
commit5b5e5abd20e27217bf151c8bbf1da102e1a5c969
tree87f25d9b026abc23af6ef34e9b67687bbfd8e5d2
parent8c8fe42a0d81f002fbae486ed45027d32dae7eeb
ARM IAS: support .thumb_set

This performs the equivalent of a .set directive in that it creates a symbol
which is an alias for another symbol or value which may possibly be yet
undefined.  This directive also has the added property in that it marks the
aliased symbol as being a thumb function entry point, in the same way that the
.thumb_func directive does.

The current implementation fails one test due to an unrelated issue.  Functions
within .thumb sections are not marked as thumb_func.  The result is that
the aliasee function is not valued correctly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204059 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/ELFObjectWriter.cpp
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/MC/ARM/thumb_set-diagnostics.s [new file with mode: 0644]
test/MC/ARM/thumb_set.s [new file with mode: 0644]