[PATCH] Add support for parsing ARM symbol variants on ELF targets

David Peixotto dpeixott at codeaurora.org
Mon Dec 2 11:54:24 PST 2013


Please help to review the attached patch.

ARM symbol variants are written with parens instead of @ like this:

  .word __GLOBAL_I_a(target1)

This commit adds support for parsing these symbol variants in
expressions. We introduce a new flag to MCAsmInfo that indicates the
parser should use parens to parse the symbol variant. The expression
parser is modified to look for symbol variants using parens instead
of @ when the corresponding MCAsmInfo flag is true.

The MCAsmInfo flag is enabled only for ARM on ELF.

PR18080

-- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted
by The Linux Foundation



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-support-for-parsing-ARM-symbol-variants-on-ELF-t.patch
Type: application/octet-stream
Size: 8497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131202/d7a2727a/attachment.obj>


More information about the llvm-commits mailing list