diff options
Diffstat (limited to 'tools/llvm-mc/AsmParser.h')
| -rw-r--r-- | tools/llvm-mc/AsmParser.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/tools/llvm-mc/AsmParser.h b/tools/llvm-mc/AsmParser.h index 21a7f46..8ab4b43 100644 --- a/tools/llvm-mc/AsmParser.h +++ b/tools/llvm-mc/AsmParser.h @@ -18,6 +18,7 @@ #include "AsmLexer.h" #include "AsmCond.h" #include "llvm/MC/MCAsmParser.h" +#include "llvm/MC/MCSectionMachO.h" #include "llvm/MC/MCStreamer.h" namespace llvm { @@ -40,10 +41,15 @@ private: AsmCond TheCondState; std::vector<AsmCond> TheCondStack; + // FIXME: Figure out where this should leave, the code is a copy of that which + // is also used by TargetLoweringObjectFile. + mutable void *SectionUniquingMap; + public: AsmParser(SourceMgr &_SM, MCContext &_Ctx, MCStreamer &_Out) - : Lexer(_SM), Ctx(_Ctx), Out(_Out), TargetParser(0) {} - ~AsmParser() {} + : Lexer(_SM), Ctx(_Ctx), Out(_Out), TargetParser(0), + SectionUniquingMap(0) {} + ~AsmParser(); bool Run(); @@ -71,6 +77,13 @@ public: private: MCSymbol *CreateSymbol(StringRef Name); + // FIXME: See comment on SectionUniquingMap. + const MCSection *getMachOSection(const StringRef &Segment, + const StringRef &Section, + unsigned TypeAndAttributes, + unsigned Reserved2, + SectionKind Kind) const; + bool ParseStatement(); bool TokError(const char *Msg); |
