David Peixotto
0fc8c68b11
Add support for parsing ARM symbol variants on ELF targets
...
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 parens flag is enabled only for ARM on ELF.
By adding this flag to MCAsmInfo, we are able to get rid of
redundant ARM-specific symbol variants and use the generic variants
instead (e.g. VK_GOT instead of VK_ARM_GOT). We use the new
UseParensForSymbolVariant attribute in MCAsmInfo to correctly print
the symbol variants for arm.
To achive this we need to keep a handle to the MCAsmInfo in the
MCSymbolRefExpr class that we can check when printing the symbol
variant.
Updated Tests:
Changed case of symbol variant to match the generic kind.
test/CodeGen/ARM/tls-models.ll
test/CodeGen/ARM/tls1.ll
test/CodeGen/ARM/tls2.ll
test/CodeGen/Thumb2/tls1.ll
test/CodeGen/Thumb2/tls2.ll
PR18080
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196424 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-04 22:43:20 +00:00
..
2013-07-14 06:24:09 +00:00
2013-03-12 16:27:52 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-08-22 17:11:18 +00:00
2013-07-14 06:24:09 +00:00
2013-11-22 21:49:45 +00:00
2013-07-14 06:24:09 +00:00
2013-04-22 08:02:43 +00:00
2013-07-25 19:33:30 +00:00
2013-11-22 21:49:45 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-04-12 04:06:46 +00:00
2013-04-12 04:06:46 +00:00
2013-11-22 21:49:45 +00:00
2013-08-21 22:20:53 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-10-14 16:57:17 +00:00
2013-07-13 20:38:47 +00:00
2013-11-22 21:49:45 +00:00
2013-10-14 16:57:17 +00:00
2013-09-25 00:26:16 +00:00
2013-09-25 00:26:16 +00:00
2013-07-13 20:38:47 +00:00
2013-07-13 20:38:47 +00:00
2013-07-14 06:24:09 +00:00
2013-07-13 20:38:47 +00:00
2013-04-29 22:58:55 +00:00
2013-04-29 22:58:55 +00:00
2013-04-29 22:58:55 +00:00
2013-04-29 22:58:55 +00:00
2013-07-14 06:24:09 +00:00
2013-04-29 22:58:55 +00:00
2013-04-29 22:58:55 +00:00
2013-07-03 21:42:57 +00:00
2013-04-29 22:58:55 +00:00
2013-04-29 22:58:55 +00:00
2013-07-13 20:38:47 +00:00
2013-07-14 06:24:09 +00:00
2013-10-14 16:57:17 +00:00
2013-07-14 06:24:09 +00:00
2013-07-03 16:41:29 +00:00
2013-07-03 16:41:29 +00:00
2013-07-25 18:35:14 +00:00
2013-07-13 20:38:47 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-18 22:47:09 +00:00
2013-07-14 06:24:09 +00:00
2013-08-12 12:43:26 +00:00
2013-10-11 18:09:19 +00:00
2013-07-14 06:24:09 +00:00
2013-04-22 13:06:52 +00:00
2013-04-18 09:11:08 +00:00
2013-07-14 06:24:09 +00:00
2013-05-05 07:48:36 +00:00
2013-10-11 18:09:19 +00:00
2013-11-13 18:29:49 +00:00
2013-08-14 16:35:29 +00:00
2013-05-20 08:01:34 +00:00
2013-05-20 08:01:34 +00:00
2013-05-13 02:07:05 +00:00
2013-06-07 20:10:37 +00:00
2013-07-18 18:35:22 +00:00
2013-07-30 04:43:08 +00:00
2013-10-14 16:57:17 +00:00
2013-11-14 17:15:39 +00:00
2013-07-29 09:25:50 +00:00
2013-07-14 06:24:09 +00:00
2013-08-12 12:43:26 +00:00
2013-03-12 16:27:52 +00:00
2013-12-03 11:23:11 +00:00
2013-11-14 13:58:06 +00:00
2013-08-01 21:42:05 +00:00
2013-07-14 06:24:09 +00:00
2013-09-09 14:21:49 +00:00
2013-07-14 06:24:09 +00:00
2013-07-18 22:47:09 +00:00
2013-07-14 06:24:09 +00:00
2013-09-26 12:22:36 +00:00
2013-07-14 06:24:09 +00:00
2013-08-22 12:19:24 +00:00
2013-10-25 09:30:24 +00:00
2013-09-26 12:22:36 +00:00
2013-07-14 06:24:09 +00:00
2013-07-25 18:35:19 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2012-12-19 20:16:09 +00:00
2013-07-14 06:24:09 +00:00
2013-11-12 10:38:05 +00:00
2013-11-25 13:17:15 +00:00
2013-10-07 19:47:53 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-11-22 21:49:45 +00:00
2012-11-29 00:26:11 +00:00
2013-07-14 06:24:09 +00:00
2013-04-29 22:58:55 +00:00
2013-08-20 08:57:11 +00:00
2013-07-12 23:33:03 +00:00
2013-05-29 22:03:55 +00:00
2013-07-13 20:38:47 +00:00
2012-11-29 19:38:06 +00:00
2013-12-02 10:35:41 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-09-02 17:09:01 +00:00
2013-10-24 23:11:05 +00:00
2013-07-14 06:24:09 +00:00
2013-03-18 22:08:16 +00:00
2013-11-22 21:49:45 +00:00
2013-11-22 21:49:45 +00:00
2013-11-23 01:16:29 +00:00
2013-11-22 21:49:45 +00:00
2013-11-22 21:49:45 +00:00
2013-11-22 21:49:45 +00:00
2013-11-22 21:49:45 +00:00
2013-06-04 22:52:09 +00:00
2013-07-18 18:35:22 +00:00
2013-10-07 18:06:48 +00:00
2013-07-13 20:38:47 +00:00
2013-07-25 18:35:14 +00:00
2013-07-14 06:24:09 +00:00
2012-11-14 19:13:30 +00:00
2013-07-14 06:24:09 +00:00
2012-11-27 16:11:16 +00:00
2013-06-07 18:36:03 +00:00
2013-07-14 06:24:09 +00:00
2013-07-13 20:38:47 +00:00
2013-07-13 20:38:47 +00:00
2013-07-13 20:38:47 +00:00
2013-08-16 23:37:23 +00:00
2013-08-23 15:20:56 +00:00
2013-07-14 06:24:09 +00:00
2013-08-26 20:22:05 +00:00
2013-06-14 02:49:43 +00:00
2013-11-18 13:50:19 +00:00
2013-08-16 23:37:23 +00:00
2013-08-16 23:37:36 +00:00
2013-06-14 02:49:43 +00:00
2013-06-14 02:49:43 +00:00
2013-05-14 16:26:38 +00:00
2013-08-16 23:37:36 +00:00
2013-06-14 02:49:43 +00:00
2013-07-14 06:24:09 +00:00
2013-06-14 02:49:43 +00:00
2013-08-16 23:37:36 +00:00
2013-06-14 02:49:43 +00:00
2013-11-22 13:25:07 +00:00
2013-05-14 16:26:38 +00:00
2013-08-21 22:20:53 +00:00
2013-06-14 02:49:43 +00:00
2013-06-10 00:35:57 +00:00
2013-06-14 02:49:43 +00:00
2013-08-26 20:07:29 +00:00
2013-06-14 02:49:43 +00:00
2013-05-14 16:26:38 +00:00
2013-08-16 23:37:36 +00:00
2013-09-09 14:21:49 +00:00
2013-08-16 23:37:23 +00:00
2013-08-12 12:43:26 +00:00
2013-06-14 02:49:43 +00:00
2013-08-16 23:37:31 +00:00
2013-07-06 12:58:45 +00:00
2013-11-15 19:09:27 +00:00
2013-07-13 20:38:47 +00:00
2013-07-13 20:38:47 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-13 20:38:47 +00:00
2013-07-13 20:38:47 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-12-01 14:16:24 +00:00
2013-07-14 06:24:09 +00:00
2013-07-13 20:38:47 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-25 18:35:14 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-03-21 21:30:49 +00:00
2013-07-14 06:24:09 +00:00
2013-01-07 12:31:25 +00:00
2013-03-18 22:30:07 +00:00
2013-07-14 06:24:09 +00:00
2013-04-21 12:20:19 +00:00
2013-04-21 12:20:19 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-10-11 19:04:37 +00:00
2013-10-04 16:52:54 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-03 16:41:29 +00:00
2013-07-14 06:24:09 +00:00
2013-07-19 23:52:47 +00:00
2013-12-02 10:35:41 +00:00
2013-02-14 14:46:12 +00:00
2013-07-14 06:24:09 +00:00
2013-08-22 06:51:04 +00:00
2013-10-01 14:33:28 +00:00
2013-09-19 11:59:01 +00:00
2013-10-01 12:39:11 +00:00
2013-03-08 02:21:08 +00:00
2013-07-14 06:24:09 +00:00
2013-07-13 20:38:47 +00:00
2013-07-13 20:38:47 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-18 18:35:22 +00:00
2013-08-16 00:37:11 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-10-11 18:09:19 +00:00
2013-10-11 18:09:19 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-06-17 19:00:36 +00:00
2013-07-14 06:24:09 +00:00
2013-12-02 10:35:41 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-04-02 15:58:51 +00:00
2013-12-02 14:46:26 +00:00
2013-09-30 18:17:35 +00:00
2013-07-14 06:24:09 +00:00
2013-11-26 12:45:05 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-06-18 20:14:39 +00:00
2013-02-20 21:33:32 +00:00
2013-02-19 15:27:05 +00:00
2013-02-22 10:01:33 +00:00
2013-07-14 06:24:09 +00:00
2013-08-21 22:20:53 +00:00
2013-07-13 20:38:47 +00:00
2013-08-12 12:43:26 +00:00
2013-10-11 11:07:00 +00:00
2013-05-01 19:18:51 +00:00
2013-11-08 18:14:17 +00:00
2013-10-04 16:52:56 +00:00
2013-07-13 20:38:47 +00:00
2013-07-14 06:24:09 +00:00
2013-08-26 20:22:08 +00:00
2013-07-14 06:24:09 +00:00
2013-03-11 03:49:23 +00:00
2013-09-26 17:25:10 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-05-23 19:11:20 +00:00
2013-10-11 18:09:19 +00:00
2013-07-14 06:24:09 +00:00
2013-07-12 14:54:12 +00:00
2013-08-06 13:58:03 +00:00
2013-07-13 20:38:47 +00:00
2013-07-14 06:24:09 +00:00
2013-06-09 12:36:57 +00:00
2013-07-14 06:24:09 +00:00
2013-08-22 09:57:11 +00:00
2013-10-04 16:52:51 +00:00
2013-10-11 18:09:19 +00:00
2013-08-22 09:57:11 +00:00
2013-07-13 20:38:47 +00:00
2013-11-03 06:14:38 +00:00
2013-02-05 18:23:10 +00:00
2013-07-14 06:24:09 +00:00
2013-08-22 23:45:24 +00:00
2013-07-13 20:38:47 +00:00
2013-10-17 19:52:05 +00:00
2013-10-15 19:42:32 +00:00
2013-09-30 18:17:35 +00:00
2013-07-14 06:24:09 +00:00
2012-12-01 01:06:44 +00:00
2013-09-02 15:48:17 +00:00
2013-09-04 21:23:23 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-12 14:54:12 +00:00
2013-07-13 20:38:47 +00:00
2013-09-09 14:21:49 +00:00
2013-12-04 22:43:20 +00:00
2013-12-04 22:43:20 +00:00
2013-12-04 22:43:20 +00:00
2013-08-26 20:22:08 +00:00
2013-10-11 18:09:19 +00:00
2013-07-18 22:29:15 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-13 20:38:47 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-08-28 14:33:33 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-18 22:47:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-04-30 17:52:57 +00:00
2013-07-14 06:24:09 +00:00
2013-07-18 13:17:26 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-18 22:47:09 +00:00
2013-10-11 18:09:19 +00:00
2013-07-14 06:24:09 +00:00
2013-07-13 20:38:47 +00:00
2013-07-14 06:24:09 +00:00
2013-03-02 19:38:33 +00:00
2013-07-13 20:38:47 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-18 22:47:09 +00:00
2013-10-10 09:28:20 +00:00
2013-09-04 17:05:18 +00:00
2013-07-14 06:24:09 +00:00
2013-09-13 13:46:57 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-18 22:47:09 +00:00
2013-09-25 23:12:06 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-08-28 14:33:33 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-13 20:38:47 +00:00
2013-09-13 13:46:57 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-18 22:47:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-10-11 18:09:19 +00:00
2013-08-28 14:33:33 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-07-14 06:24:09 +00:00
2013-06-08 00:07:54 +00:00
2013-03-29 17:14:24 +00:00
2013-03-20 22:53:44 +00:00