diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-13 14:01:59 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-13 14:01:59 +0000 |
commit | de9a1a2055851a0f0a88e459cd23a246a90efd45 (patch) | |
tree | dd4e2b5072fd4a527b5c39f3f64d8f07032a6c45 /test | |
parent | 7af43e0ad01a5f85f9066b69faba990a72f89536 (diff) | |
download | external_llvm-de9a1a2055851a0f0a88e459cd23a246a90efd45.zip external_llvm-de9a1a2055851a0f0a88e459cd23a246a90efd45.tar.gz external_llvm-de9a1a2055851a0f0a88e459cd23a246a90efd45.tar.bz2 |
Remove AllowQuotesInName and friends from MCAsmInfo.
Accepting quotes is a property of an assembler, not of an object file. For
example, ELF can support any names for sections and symbols, but the gnu
assembler only accepts quotes in some contexts and llvm-mc in a few more.
LLVM should not produce different symbols based on a guess about which assembler
will be reading the code it is printing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194575 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/GC/ocaml-gc.ll | 20 | ||||
-rw-r--r-- | test/CodeGen/X86/global-sections.ll | 8 |
2 files changed, 14 insertions, 14 deletions
diff --git a/test/CodeGen/X86/GC/ocaml-gc.ll b/test/CodeGen/X86/GC/ocaml-gc.ll index 44241a9..6d5f8ae 100644 --- a/test/CodeGen/X86/GC/ocaml-gc.ll +++ b/test/CodeGen/X86/GC/ocaml-gc.ll @@ -2,23 +2,23 @@ define i32 @main(i32 %x) nounwind gc "ocaml" { ; CHECK: .text -; CHECK-NEXT: .globl caml_3C_stdin_3E___code_begin -; CHECK-NEXT: caml_3C_stdin_3E___code_begin: +; CHECK-NEXT: .globl "caml<stdin>__code_begin" +; CHECK-NEXT: "caml<stdin>__code_begin": ; CHECK-NEXT: .data -; CHECK-NEXT: .globl caml_3C_stdin_3E___data_begin -; CHECK-NEXT: caml_3C_stdin_3E___data_begin: +; CHECK-NEXT: .globl "caml<stdin>__data_begin" +; CHECK-NEXT: "caml<stdin>__data_begin": %puts = tail call i32 @foo(i32 %x) ret i32 0 -; CHECK: .globl caml_3C_stdin_3E___code_end -; CHECK-NEXT: caml_3C_stdin_3E___code_end: +; CHECK: .globl "caml<stdin>__code_end" +; CHECK-NEXT: "caml<stdin>__code_end": ; CHECK-NEXT: .data -; CHECK-NEXT: .globl caml_3C_stdin_3E___data_end -; CHECK-NEXT: caml_3C_stdin_3E___data_end: +; CHECK-NEXT: .globl "caml<stdin>__data_end" +; CHECK-NEXT: "caml<stdin>__data_end": ; CHECK-NEXT: .quad 0 -; CHECK-NEXT: .globl caml_3C_stdin_3E___frametable -; CHECK-NEXT: caml_3C_stdin_3E___frametable: +; CHECK-NEXT: .globl "caml<stdin>__frametable" +; CHECK-NEXT: "caml<stdin>__frametable": ; CHECK-NEXT: .short 1 ; CHECK-NEXT: .align 8 ; CHECK-NEXT: # live roots for main diff --git a/test/CodeGen/X86/global-sections.ll b/test/CodeGen/X86/global-sections.ll index 194f597..d8743ac 100644 --- a/test/CodeGen/X86/global-sections.ll +++ b/test/CodeGen/X86/global-sections.ll @@ -65,10 +65,10 @@ ; PR4584 @"foo bar" = linkonce global i32 42 -; LINUX: .type foo_20_bar,@object -; LINUX: .section .data.foo_20_bar,"aGw",@progbits,foo_20_bar,comdat -; LINUX: .weak foo_20_bar -; LINUX: foo_20_bar: +; LINUX: .type "foo bar",@object +; LINUX: .section ".data.foo bar","aGw",@progbits,"foo bar",comdat +; LINUX: .weak "foo bar" +; LINUX: "foo bar": ; DARWIN: .section __DATA,__datacoal_nt,coalesced ; DARWIN: .globl "_foo bar" |