aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCSectionMachO.cpp
AgeCommit message (Collapse)AuthorFilesLines
2015-09-10[ADT] Switch a bunch of places in LLVM that were doing single-characterChandler Carruth1-2/+2
splits to actually use the single character split routine which does less work, and in a debug build is *substantially* faster. llvm-svn: 247245
2015-04-04Implement unique sections with an unique ID.Rafael Espindola1-1/+1
This allows the compiler/assembly programmer to switch back to a section. This in turn fixes the bootstrap failure on powerpc (tested on gcc110) without changing the ppc codegen at all. I will try to cleanup the various getELFSection overloads in a followup patch. Just using a default argument now would lead to ambiguities. llvm-svn: 234099
2015-03-27Close unique sections when switching away from them.Rafael Espindola1-1/+1
It is not possible to switch back to unique secitons, so close them automatically when switching away. llvm-svn: 233380
2015-03-10Create symbols marking the start of a section earlier.Rafael Espindola1-2/+4
This lets us pass the symbol to the constructor and avoid the mutable field. This also opens the way for outputting the symbol only when needed, instead of outputting them at the start of the file. llvm-svn: 231859
2014-04-13[C++11] More 'nullptr' conversion or in some cases just using a boolean ↵Craig Topper1-8/+8
check instead of comparing to nullptr. llvm-svn: 206129
2014-03-10MC: Appease the buildbotsDavid Majnemer1-2/+2
This is fallout from r203429. llvm-svn: 203430
2014-03-10MC: Cleanup MCSectionMachO::ParseSectionSpecifierDavid Majnemer1-77/+43
Split by comma once instead of multiple times. Moving this upfront makes the rest of the code considerably simpler. No functional change. llvm-svn: 203429
2014-03-07MC: Use MachO::SectionType for MCSectionMachO::getType's return typeDavid Majnemer1-1/+1
This is a straightfoward replacement, it makes debugging a little easier. This has no functional impact. llvm-svn: 203264
2014-03-07MC: Remove superfluous section attribute flag definitionsDavid Majnemer1-14/+14
Summary: llvm/MC/MCSectionMachO.h and llvm/Support/MachO.h both had the same definitions for the section flags. Instead, grab the definitions out of support. No functionality change. Reviewers: grosbach, Bigcheese, rafael Reviewed By: rafael CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2998 llvm-svn: 203211
2013-12-05Correct word hyphenationsAlp Toker1-1/+1
This patch tries to avoid unrelated changes other than fixing a few hyphen-related ambiguities and contractions in nearby lines. llvm-svn: 196471
2013-04-17Add support for subsections to the ELF assembler. Fixes PR8717.Peter Collingbourne1-1/+2
Differential Revision: http://llvm-reviews.chandlerc.com/D598 llvm-svn: 179725
2013-02-12Add static cast to unsigned char whenever a character classification ↵Guy Benyei1-2/+2
function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration. llvm-svn: 175006
2011-03-19Reapply 127939 since Daniel fixed the breakage. <rdar://problem/9012638>Stuart Hastings1-0/+4
llvm-svn: 127944
2011-03-19Revert 127939. <rdar://problem/9012638>Stuart Hastings1-4/+0
llvm-svn: 127943
2011-03-19Revise r126127 to address Daniel's comments. <rdar://problem/9012638>Stuart Hastings1-0/+4
llvm-svn: 127939
2011-02-21End the line if we return early. Radar 9012638.Stuart Hastings1-1/+3
llvm-svn: 126141
2011-02-21Fix to correctly support attribute((section("__DATA, __common"))).Stuart Hastings1-7/+8
Radar 9012638. llvm-svn: 126127
2010-12-19Add missing standard headers. Patch by Joerg Sonnenberger!Nick Lewycky1-0/+1
llvm-svn: 122193
2010-11-17make isVirtualSection a virtual method on MCSection. Chris' suggestion.Rafael Espindola1-0/+6
llvm-svn: 119547
2010-10-21Trailing whitespace.Jim Grosbach1-25/+25
llvm-svn: 117073
2010-10-04Add hook in MCSection to decide when to use "optimized nops", for eachJan Wen Voung1-1/+4
section kind. Previously, optimized nops were only used for MachO. Also added tests for ELF and COFF. llvm-svn: 115523
2010-05-21Fix section attribute name.Eric Christopher1-1/+1
llvm-svn: 104381
2010-05-17MC: Add dyn_cast support to MCSection.Daniel Dunbar1-1/+1
- Of questionable utility, since in general anything which wants to do this should probably be within a target specific hook, which can rely on the sections being of the appropriate type. However, it can be useful for short term hacks. llvm-svn: 103980
2010-05-17Add some section and constant support for darwin TLS.Eric Christopher1-1/+8
llvm-svn: 103974
2010-04-08move elf section uniquing to MCContext. Along the wayChris Lattner1-8/+16
merge XCore's section into MCSectionELF llvm-svn: 100812
2009-11-06Pass StringRef by value.Daniel Dunbar1-1/+1
llvm-svn: 86251
2009-10-07Fixed MCSectionMachO::ParseSectionSpecifier to allow an attribute of "none" soKevin Enderby1-4/+6
that a symbol stub section with no attributes can be parsed as in: .section __TEXT,__picsymbolstub4,symbol_stubs,none,16 llvm-svn: 83488
2009-09-20eliminate a use of strtoul.Chris Lattner1-12/+2
llvm-svn: 82382
2009-08-22rename TAI -> MAI, being careful not to make MAILJMP instructions :)Chris Lattner1-1/+1
llvm-svn: 79777
2009-08-22Rename TargetAsmInfo (and its subclasses) to MCAsmInfo.Chris Lattner1-1/+1
llvm-svn: 79763
2009-08-10split MachO section handling stuff out to its out .h/.cpp file.Chris Lattner1-0/+279
llvm-svn: 78576