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
diff --git a/test/CodeGen/X86/global-sections.ll b/test/CodeGen/X86/global-sections.ll
index 7d39a02..0fcb17f 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: