Lines Matching defs:ELFAsmParser
1 //===- ELFAsmParser.cpp - ELF Assembly Parser -----------------------------===//
35 class ELFAsmParser : public MCAsmParserExtension {
36 template<bool (ELFAsmParser::*HandlerMethod)(StringRef, SMLoc)>
39 this, HandleDirective<ELFAsmParser, HandlerMethod>);
48 ELFAsmParser() { BracketExpressionsSupported = true; }
54 addDirectiveHandler<&ELFAsmParser::parseSectionDirectiveData>(".data");
55 addDirectiveHandler<&ELFAsmParser::parseSectionDirectiveText>(".text");
56 addDirectiveHandler<&ELFAsmParser::parseSectionDirectiveBSS>(".bss");
57 addDirectiveHandler<&ELFAsmParser::parseSectionDirectiveRoData>(".rodata");
58 addDirectiveHandler<&ELFAsmParser::parseSectionDirectiveTData>(".tdata");
59 addDirectiveHandler<&ELFAsmParser::parseSectionDirectiveTBSS>(".tbss");
61 &ELFAsmParser::parseSectionDirectiveDataRel>(".data.rel");
63 &ELFAsmParser::parseSectionDirectiveDataRelRo>(".data.rel.ro");
65 &ELFAsmParser::parseSectionDirectiveEhFrame>(".eh_frame");
66 addDirectiveHandler<&ELFAsmParser::parseDirectiveSection>(".section");
68 &ELFAsmParser::parseDirectivePushSection>(".pushsection");
69 addDirectiveHandler<&ELFAsmParser::parseDirectivePopSection>(".popsection");
70 addDirectiveHandler<&ELFAsmParser::parseDirectiveSize>(".size");
71 addDirectiveHandler<&ELFAsmParser::parseDirectivePrevious>(".previous");
72 addDirectiveHandler<&ELFAsmParser::parseDirectiveType>(".type");
73 addDirectiveHandler<&ELFAsmParser::parseDirectiveIdent>(".ident");
74 addDirectiveHandler<&ELFAsmParser::parseDirectiveSymver>(".symver");
75 addDirectiveHandler<&ELFAsmParser::parseDirectiveVersion>(".version");
76 addDirectiveHandler<&ELFAsmParser::parseDirectiveWeakref>(".weakref");
77 addDirectiveHandler<&ELFAsmParser::parseDirectiveSymbolAttribute>(".weak");
78 addDirectiveHandler<&ELFAsmParser::parseDirectiveSymbolAttribute>(".local");
80 &ELFAsmParser::parseDirectiveSymbolAttribute>(".protected");
82 &ELFAsmParser::parseDirectiveSymbolAttribute>(".internal");
84 &ELFAsmParser::parseDirectiveSymbolAttribute>(".hidden");
85 addDirectiveHandler<&ELFAsmParser::parseDirectiveSubsection>(".subsection");
86 addDirectiveHandler<&ELFAsmParser::parseDirectiveCGProfile>(".cg_profile");
168 bool ELFAsmParser::parseDirectiveSymbolAttribute(StringRef Directive, SMLoc) {
207 bool ELFAsmParser::parseSectionSwitch(StringRef Section, unsigned Type,
222 bool ELFAsmParser::parseDirectiveSize(StringRef, SMLoc) {
244 bool ELFAsmParser::parseSectionName(StringRef &SectionName) {
365 unsigned ELFAsmParser::parseSunStyleSectionFlags() {
395 bool ELFAsmParser::parseDirectivePushSection(StringRef s, SMLoc loc) {
406 bool ELFAsmParser::parseDirectivePopSection(StringRef, SMLoc) {
412 bool ELFAsmParser::parseDirectiveSection(StringRef, SMLoc loc) {
416 bool ELFAsmParser::maybeParseSectionType(StringRef &TypeName) {
438 bool ELFAsmParser::parseMergeSize(int64_t &Size) {
449 bool ELFAsmParser::parseGroup(StringRef &GroupName, bool &IsComdat) {
474 bool ELFAsmParser::parseLinkedToSym(MCSymbolELF *&LinkedToSym) {
495 bool ELFAsmParser::maybeParseUniqueID(int64_t &UniqueID) {
539 bool ELFAsmParser::parseSectionArguments(bool IsPush, SMLoc loc) {
727 bool ELFAsmParser::parseDirectivePrevious(StringRef DirName, SMLoc) {
755 bool ELFAsmParser::parseDirectiveType(StringRef, SMLoc) {
808 bool ELFAsmParser::parseDirectiveIdent(StringRef, SMLoc) {
826 bool ELFAsmParser::parseDirectiveSymver(StringRef, SMLoc) {
863 bool ELFAsmParser::parseDirectiveVersion(StringRef, SMLoc) {
887 bool ELFAsmParser::parseDirectiveWeakref(StringRef, SMLoc) {
911 bool ELFAsmParser::parseDirectiveSubsection(StringRef, SMLoc) {
927 bool ELFAsmParser::parseDirectiveCGProfile(StringRef S, SMLoc Loc) {
934 return new ELFAsmParser;