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) {
725 bool ELFAsmParser::ParseDirectivePrevious(StringRef DirName, SMLoc) {
753 bool ELFAsmParser::ParseDirectiveType(StringRef, SMLoc) {
806 bool ELFAsmParser::ParseDirectiveIdent(StringRef, SMLoc) {
824 bool ELFAsmParser::ParseDirectiveSymver(StringRef, SMLoc) {
861 bool ELFAsmParser::ParseDirectiveVersion(StringRef, SMLoc) {
885 bool ELFAsmParser::ParseDirectiveWeakref(StringRef, SMLoc) {
909 bool ELFAsmParser::ParseDirectiveSubsection(StringRef, SMLoc) {
925 bool ELFAsmParser::ParseDirectiveCGProfile(StringRef S, SMLoc Loc) {
932 return new ELFAsmParser;