diff options
author | Sean Callanan <scallanan@apple.com> | 2010-01-21 00:19:58 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2010-01-21 00:19:58 +0000 |
commit | fd0b0288e2ee5ccf3f1d47090542710c67a77cf7 (patch) | |
tree | bc4826e2dfb787c6eef093ba692a2163936207a6 /tools/llvm-mc/AsmParser.h | |
parent | 05273448533565cf14d70e10f88919ee51755bc8 (diff) |
Moved handling of inclusion from the AsmLexer to
the AsmParser, breaking AsmLexer's dependence on
SourceMgr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mc/AsmParser.h')
-rw-r--r-- | tools/llvm-mc/AsmParser.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/llvm-mc/AsmParser.h b/tools/llvm-mc/AsmParser.h index 21792eb0e9..9336d35806 100644 --- a/tools/llvm-mc/AsmParser.h +++ b/tools/llvm-mc/AsmParser.h @@ -43,6 +43,10 @@ private: MCStreamer &Out; SourceMgr &SrcMgr; TargetAsmParser *TargetParser; + + /// This is the current buffer index we're lexing from as managed by the + /// SourceMgr object. + int CurBuffer; AsmCond TheCondState; std::vector<AsmCond> TheCondStack; @@ -106,6 +110,9 @@ private: bool TokError(const char *Msg); void PrintMessage(SMLoc Loc, const std::string &Msg, const char *Type) const; + + /// EnterIncludeFile - Enter the specified file. This returns true on failure. + bool EnterIncludeFile(const std::string &Filename); bool ParseConditionalAssemblyDirectives(StringRef Directive, SMLoc DirectiveLoc); |