aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCAsmInfoELF.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-01-15[WebAssembly] Don't create a needless .note.GNU-stack sectionDan Gohman1-0/+3
WebAssembly's stack will never be executable by default, so it isn't necessary to declare .note.GNU-stack sections to request a non-executable stack. Differential Revision: http://reviews.llvm.org/D15969 llvm-svn: 257962
2015-05-21Move alignment from MCSectionData to MCSection.Rafael Espindola1-2/+1
This starts merging MCSection and MCSectionData. There are a few issues with the current split between MCSection and MCSectionData. * It optimizes the the not as important case. We want the production of .o files to be really fast, but the split puts the information used for .o emission in a separate data structure. * The ELF/COFF/MachO hierarchy is not represented in MCSectionData, leading to some ad-hoc ways to represent the various flags. * It makes it harder to remember where each item is. The attached patch starts merging the two by moving the alignment from MCSectionData to MCSection. Most of the patch is actually just dropping 'const', since MCSectionData is mutable, but MCSection was not. llvm-svn: 237936
2015-01-29Compute the ELF SectionKind from the flags.Rafael Espindola1-2/+1
Any code creating an MCSectionELF knows ELF and already provides the flags. SectionKind is an abstraction used by common code that uses a plain MCSection. Use the flags to compute the SectionKind. This removes a lot of guessing and boilerplate from the MCSectionELF construction. llvm-svn: 227476
2014-12-04Allow target to specify prefix for labelsMatt Arsenault1-0/+1
Use the MCAsmInfo instead of the DataLayout, and allow specifying a custom prefix for labels specifically. HSAIL requires that labels begin with @, but global symbols with &. llvm-svn: 223323
2014-10-15Move getNonexecutableStackSection up to the base ELF class.Rafael Espindola1-0/+9
The .note.GNU-stack section is not SystemZ/X86 specific. llvm-svn: 219796
2013-12-02Refactor the setting of PrivateGlobalPrefix.Rafael Espindola1-0/+1
No functionality change. llvm-svn: 196170
2013-10-16Add a MCAsmInfoELF class and factor some code into it.Rafael Espindola1-0/+23
We had a MCAsmInfoCOFF, but no common class for all the ELF MCAsmInfos before. llvm-svn: 192760