summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-11-11 17:24:43 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-11-11 17:24:43 +0000
commitfb6540c112ca784daaf9eb28ef6507cfc41d95c1 (patch)
tree4d7e2efc448651c4e26a0d814f198828628ec3d2 /llvm/test
parent1d6aa32b8790d89909044aa8c4620400caccc5d3 (diff)
downloadbcm5719-llvm-fb6540c112ca784daaf9eb28ef6507cfc41d95c1.tar.gz
bcm5719-llvm-fb6540c112ca784daaf9eb28ef6507cfc41d95c1.zip
Make AliasedSymbol able to handle MCTargetExpr. They can get here if
a weakref is used with a VariantKind. llvm-svn: 118798
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/ELF/weakref-plt.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/MC/ELF/weakref-plt.s b/llvm/test/MC/ELF/weakref-plt.s
new file mode 100644
index 00000000000..26ba3f6df54
--- /dev/null
+++ b/llvm/test/MC/ELF/weakref-plt.s
@@ -0,0 +1,8 @@
+// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
+
+ .weakref bar,foo
+ call bar@PLT
+
+// CHECK: # Symbol 0x00000005
+// CHECK-NEXT: (('st_name', 0x00000001) # 'foo'
+// CHECK-NEXT: ('st_bind', 0x00000002)
OpenPOWER on IntegriCloud