mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user