summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-02-10 15:13:12 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-02-10 15:13:12 +0000
commitbe99157127994212eba77f268d508526fed177fd (patch)
treec8355d695265a35731d28a720b14a2bd8787ec3f /llvm/test/CodeGen
parent01496fe4557dc3eea9f58eedad2bb1dd1bacd796 (diff)
downloadbcm5719-llvm-be99157127994212eba77f268d508526fed177fd.tar.gz
bcm5719-llvm-be99157127994212eba77f268d508526fed177fd.zip
Move some error handling down to MCStreamer.
This makes sure we get the same redefinition rules regardless of who is printing (asm parser, codegen) and to what (asm, obj). This fixes an unintentional regression in r293936. llvm-svn: 294752
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/XCore/section-name.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/XCore/section-name.ll b/llvm/test/CodeGen/XCore/section-name.ll
new file mode 100644
index 00000000000..ee9eeb606bb
--- /dev/null
+++ b/llvm/test/CodeGen/XCore/section-name.ll
@@ -0,0 +1,8 @@
+; RUN: llc < %s -march=xcore
+
+; we used to crash in this.
+@bar = internal global i32 zeroinitializer
+
+define void @".dp.bss"() {
+ ret void
+}
OpenPOWER on IntegriCloud