mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 12:33:33 +02:00
cc70d578be
instead of syntactically as a string. This means that it keeps track of the segment, section, flags, etc directly and asmprints them in the right format. This also includes parsing and validation support for llvm-mc and "attribute(section)", so we should now start getting errors about invalid section attributes from the compiler instead of the assembler on darwin. Still todo: 1) Uniquing of darwin mcsections 2) Move all the Darwin stuff out to MCSectionMachO.[cpp|h] 3) there are a few FIXMEs, for example what is the syntax to get the S_GB_ZEROFILL segment type? llvm-svn: 78547
8 lines
221 B
LLVM
8 lines
221 B
LLVM
; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin | FileCheck %s
|
|
; CHECK: .section __TEXT,__cstring,cstring_literals
|
|
|
|
@x = internal constant [1 x i8] zeroinitializer ; <[1 x i8]*> [#uses=1]
|
|
|
|
@y = global [1 x i8]* @x
|
|
|