Home | History | Annotate | Download | only in MCParser

Lines Matching refs:ELFAsmParser

1 //===- ELFAsmParser.cpp - ELF Assembly Parser -----------------------------===//
24 class ELFAsmParser : public MCAsmParserExtension {
25 template<bool (ELFAsmParser::*HandlerMethod)(StringRef, SMLoc)>
28 this, HandleDirective<ELFAsmParser, HandlerMethod>);
38 ELFAsmParser() : SeenIdent(false) {
46 addDirectiveHandler<&ELFAsmParser::ParseSectionDirectiveData>(".data");
47 addDirectiveHandler<&ELFAsmParser::ParseSectionDirectiveText>(".text");
48 addDirectiveHandler<&ELFAsmParser::ParseSectionDirectiveBSS>(".bss");
49 addDirectiveHandler<&ELFAsmParser::ParseSectionDirectiveRoData>(".rodata");
50 addDirectiveHandler<&ELFAsmParser::ParseSectionDirectiveTData>(".tdata");
51 addDirectiveHandler<&ELFAsmParser::ParseSectionDirectiveTBSS>(".tbss");
53 &ELFAsmParser::ParseSectionDirectiveDataRel>(".data.rel");
55 &ELFAsmParser::ParseSectionDirectiveDataRelRo>(".data.rel.ro");
57 &ELFAsmParser::ParseSectionDirectiveDataRelRoLocal>(".data.rel.ro.local");
59 &ELFAsmParser::ParseSectionDirectiveEhFrame>(".eh_frame");
60 addDirectiveHandler<&ELFAsmParser::ParseDirectiveSection>(".section");
62 &ELFAsmParser::ParseDirectivePushSection>(".pushsection");
63 addDirectiveHandler<&ELFAsmParser::ParseDirectivePopSection>(".popsection");
64 addDirectiveHandler<&ELFAsmParser::ParseDirectiveSize>(".size");
65 addDirectiveHandler<&ELFAsmParser::ParseDirectivePrevious>(".previous");
66 addDirectiveHandler<&ELFAsmParser::ParseDirectiveType>(".type");
67 addDirectiveHandler<&ELFAsmParser::ParseDirectiveIdent>(".ident");
68 addDirectiveHandler<&ELFAsmParser::ParseDirectiveSymver>(".symver");
69 addDirectiveHandler<&ELFAsmParser::ParseDirectiveVersion>(".version");
70 addDirectiveHandler<&ELFAsmParser::ParseDirectiveWeakref>(".weakref");
71 addDirectiveHandler<&ELFAsmParser::ParseDirectiveSymbolAttribute>(".weak");
72 addDirectiveHandler<&ELFAsmParser::ParseDirectiveSymbolAttribute>(".local");
74 &ELFAsmParser::ParseDirectiveSymbolAttribute>(".protected");
76 &ELFAsmParser::ParseDirectiveSymbolAttribute>(".internal");
78 &ELFAsmParser::ParseDirectiveSymbolAttribute>(".hidden");
79 addDirectiveHandler<&ELFAsmParser::ParseDirectiveSubsection>(".subsection");
162 bool ELFAsmParser::ParseDirectiveSymbolAttribute(StringRef Directive, SMLoc) {
195 bool ELFAsmParser::ParseSectionSwitch(StringRef Section, unsigned Type,
210 bool ELFAsmParser::ParseDirectiveSize(StringRef, SMLoc) {
231 bool ELFAsmParser::ParseSectionName(StringRef &SectionName) {
322 bool ELFAsmParser::ParseDirectivePushSection(StringRef s, SMLoc loc) {
333 bool ELFAsmParser::ParseDirectivePopSection(StringRef, SMLoc) {
340 bool ELFAsmParser::ParseDirectiveSection(StringRef, SMLoc) {
344 bool ELFAsmParser::ParseSectionArguments(bool IsPush) {
472 bool ELFAsmParser::ParseDirectivePrevious(StringRef DirName, SMLoc) {
483 bool ELFAsmParser::ParseDirectiveType(StringRef, SMLoc) {
531 bool ELFAsmParser::ParseDirectiveIdent(StringRef, SMLoc) {
560 bool ELFAsmParser::ParseDirectiveSymver(StringRef, SMLoc) {
587 bool ELFAsmParser::ParseDirectiveVersion(StringRef, SMLoc) {
613 bool ELFAsmParser::ParseDirectiveWeakref(StringRef, SMLoc) {
637 bool ELFAsmParser::ParseDirectiveSubsection(StringRef, SMLoc) {
654 return new ELFAsmParser;