aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/global-sections.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-10 01:39:42 +0000
committerChris Lattner <sabre@nondot.org>2009-08-10 01:39:42 +0000
commitff4bc460c52c1f285d8a56da173641bf92d49e3f (patch)
tree7da0d5977dffaffaa4bb5da91039d0960f839f77 /test/CodeGen/X86/global-sections.ll
parente36df3fd31a08a41d9ad04fcba182b616b030c9c (diff)
Make the big switch: Change MCSectionMachO to represent a section *semantically*
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? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/global-sections.ll')
-rw-r--r--test/CodeGen/X86/global-sections.ll10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/CodeGen/X86/global-sections.ll b/test/CodeGen/X86/global-sections.ll
index 7d39a02095..0fcb17f198 100644
--- a/test/CodeGen/X86/global-sections.ll
+++ b/test/CodeGen/X86/global-sections.ll
@@ -28,7 +28,7 @@
; int * const G3 = &G1;
@G3 = constant i32* @G1
-; DARWIN: .const_data
+; DARWIN: .section __DATA,__const
; DARWIN: .globl _G3
; DARWIN: _G3:
; DARWIN: .long _G1
@@ -37,7 +37,7 @@
; _Complex long long const G4 = 34;
@G4 = constant {i64,i64} { i64 34, i64 0 }
-; DARWIN: .const
+; DARWIN: .section __TEXT,__const
; DARWIN: _G4:
; DARWIN: .long 34
@@ -50,7 +50,7 @@
; LINUX: G5:
; LINUX: .long 47
-; DARWIN: .data
+; DARWIN: .section __DATA,__data
; DARWIN: .globl _G5
; DARWIN: _G5:
; DARWIN: .long 47
@@ -88,7 +88,7 @@
@G7 = constant [10 x i8] c"abcdefghi\00"
-; DARWIN: .cstring
+; DARWIN: __TEXT,__cstring,cstring_literals
; DARWIN: .globl _G7
; DARWIN: _G7:
; DARWIN: .asciz "abcdefghi"
@@ -111,7 +111,7 @@
@G9 = constant [4 x i32] [ i32 1, i32 2, i32 3, i32 0 ]
-; DARWIN: .const
+; DARWIN: .section __TEXT,__const
; DARWIN: .globl _G9
; DARWIN: _G9: