Make the big switch: Change MCSectionMachO to represent a section *semantically*
authorChris Lattner <sabre@nondot.org>
Mon, 10 Aug 2009 01:39:42 +0000 (01:39 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 10 Aug 2009 01:39:42 +0000 (01:39 +0000)
commitff4bc460c52c1f285d8a56da173641bf92d49e3f
tree7da0d5977dffaffaa4bb5da91039d0960f839f77
parente36df3fd31a08a41d9ad04fcba182b616b030c9c
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
18 files changed:
include/llvm/MC/MCSection.h
include/llvm/Target/TargetLoweringObjectFile.h
lib/MC/MCAsmStreamer.cpp
lib/MC/MCSection.cpp
lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
lib/Target/TargetLoweringObjectFile.cpp
lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
test/CodeGen/ARM/ctors_dtors.ll
test/CodeGen/ARM/stubs.ll
test/CodeGen/PowerPC/available-externally.ll
test/CodeGen/X86/2009-01-27-NullStrings.ll
test/CodeGen/X86/global-sections.ll
tools/llvm-mc/AsmLexer.cpp
tools/llvm-mc/AsmLexer.h
tools/llvm-mc/AsmParser.cpp
tools/llvm-mc/AsmParser.h
tools/llvm-mc/llvm-mc.cpp