llvm-6502/test/MC
Saleem Abdulrasool 7afe0000f6 ARM IAS: properly handle function entries in .thumb
When a label is parsed, check if there is type information available for the
label.  If so, check if the symbol is a function.  If the symbol is a function
and we are in thumb mode and no explicit thumb_func has been emitted, adjust the
symbol data to indicate that the function definition is a thumb function.

The application of this inferencing is improved value handling in the object
file (the required thumb bit is set on symbols which are thumb functions).  It
also helps improve compatibility with binutils.

The one complication that arises from this handling is the MCAsmStreamer.  The
default implementation of getOrCreateSymbolData in MCStreamer does not support
tracking the symbol data.  In order to support the semantics of thumb functions,
track symbol data in assembly streamer.  Although O(n) in number of labels in
the TU, this is already done in various other streamers and as such the memory
overhead is not a practical concern in this scenario.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204544 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-22 19:26:18 +00:00
..
AArch64 [AArch64]Fix improper diagnostics about offset range of load/store instructions. 2014-03-04 02:05:13 +00:00
ARM ARM IAS: properly handle function entries in .thumb 2014-03-22 19:26:18 +00:00
AsmParser Move tests that require ARM to an ARM test directory. 2014-03-18 22:43:59 +00:00
COFF Object/COFF: change data type of SymbolNumber from int16 to uint16. 2014-03-15 00:04:08 +00:00
Disassembler [SystemZ] Add support for z196 float<->unsigned conversions 2014-03-21 10:56:30 +00:00
ELF Fix the value computation in 2014-03-21 22:00:29 +00:00
MachO Move codegen test over to MC. 2014-03-21 17:55:34 +00:00
Markup MC: Simple example parser for MC assembly markup. 2012-10-31 23:24:13 +00:00
Mips [MIPS] Add cpu octeon and some instructions 2014-03-20 11:51:58 +00:00
PowerPC [PowerPC] Initial support for the VSX instruction set 2014-03-13 07:58:58 +00:00
Sparc [Sparc] Add trap on integer condition codes (Ticc) instructions to Sparc backend. 2014-03-02 23:39:07 +00:00
SystemZ [SystemZ] Add support for z196 float<->unsigned conversions 2014-03-21 10:56:30 +00:00
X86 Convert a CodeGen test into a MC test. 2014-03-21 00:55:42 +00:00