From 732cf2d598b4c9ca47e9c32fbd2e7732d971bda6 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 14 Nov 2013 06:05:49 +0000 Subject: 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 --- test/CodeGen/X86/newline-and-quote.ll | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/CodeGen/X86/newline-and-quote.ll (limited to 'test') 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" -- cgit v1.2.3