summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-11-14 06:05:49 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-11-14 06:05:49 +0000
commit732cf2d598b4c9ca47e9c32fbd2e7732d971bda6 (patch)
tree84eaf12c0c6c9d689050b548eee0d9147effd5a4 /test/CodeGen/X86
parentfd57284d021d594ebbf358456d40c4f72e515cca (diff)
downloadllvm-732cf2d598b4c9ca47e9c32fbd2e7732d971bda6.tar.gz
llvm-732cf2d598b4c9ca47e9c32fbd2e7732d971bda6.tar.bz2
llvm-732cf2d598b4c9ca47e9c32fbd2e7732d971bda6.tar.xz
Don't mangle \n and "
There is nothing special about quotes and newlines from the object file point of view, only the assembler has to worry about expanding the \n and \". This patch then removes the special handling from the Mangler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r--test/CodeGen/X86/newline-and-quote.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/X86/newline-and-quote.ll b/test/CodeGen/X86/newline-and-quote.ll
new file mode 100644
index 0000000000..9206e9f398
--- /dev/null
+++ b/test/CodeGen/X86/newline-and-quote.ll
@@ -0,0 +1,6 @@
+; RUN: llc < %s -mtriple=x86_64-pc-linux-gnu | FileCheck %s
+@"foo\22bar" = global i32 42
+; CHECK: .globl "foo\"bar"
+
+@"foo\0abar" = global i32 42
+; CHECK: .globl "foo\nbar"