1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/lib/MC
Chris Lattner 79e9585304 Change SectionKind to be a property that is true of a *section*, it
should have no state that is specific to particular globals in the
section.  In this case, it means the removal of the "isWeak" and
"ExplicitSection" bits.  MCSection uses the new form of SectionKind.

To handle isWeak, I introduced a new SectionInfo class, which is
SectionKind + isWeak, and it is used by the part of the code generator
that does classification of a specific global.

The ExplicitSection disappears.  It is moved onto MCSection as a new
"IsDirective" bit.  Since the Name of a section is either a section
or directive, it makes sense to keep this bit in MCSection.  Ultimately
the creator of MCSection should canonicalize (e.g.) .text to whatever
the actual section is.

llvm-svn: 77803
2009-08-01 21:11:14 +00:00
..
CMakeLists.txt split MCSection stuff out to its own .cpp file, add a new 2009-07-31 17:02:00 +00:00
Makefile
MCAsmLexer.cpp Expose Tokens to target specific assembly parsers. 2009-07-28 17:58:44 +00:00
MCAsmParser.cpp Add MCAsmParser interface. 2009-07-20 18:55:04 +00:00
MCAsmStreamer.cpp llvm-mc: Fix .s output to quote section & symbol names when necessary. 2009-07-31 23:04:32 +00:00
MCContext.cpp split MCSection stuff out to its own .cpp file, add a new 2009-07-31 17:02:00 +00:00
MCSection.cpp Change SectionKind to be a property that is true of a *section*, it 2009-08-01 21:11:14 +00:00
MCStreamer.cpp Start MCAsmStreamer implementation. 2009-06-24 01:03:06 +00:00
TargetAsmParser.cpp llvm-mc: Add -triple, and start fetching the target asm printer. 2009-07-17 22:38:58 +00:00