diff options
| author | Sean Callanan <scallanan@apple.com> | 2010-01-20 22:45:23 +0000 |
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2010-01-20 22:45:23 +0000 |
| commit | 1a0eeb6e06751ab63e1352634add041ac35a4b46 (patch) | |
| tree | 0bc3d29c514693294f44c330cc1f96971e46eec2 /llvm/tools | |
| parent | 802f12f719150fe9f052dff5c3c8ef4b49653a26 (diff) | |
| download | bcm5719-llvm-1a0eeb6e06751ab63e1352634add041ac35a4b46.tar.gz bcm5719-llvm-1a0eeb6e06751ab63e1352634add041ac35a4b46.zip | |
Promoted the reference to the SourceMgr from AsmLexer
into AsmParser, in preparation for making AsmLexer
independent of the SourceMgr
llvm-svn: 94043
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/llvm-mc/AsmParser.cpp | 2 | ||||
| -rw-r--r-- | llvm/tools/llvm-mc/AsmParser.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/llvm/tools/llvm-mc/AsmParser.cpp b/llvm/tools/llvm-mc/AsmParser.cpp index eb77e8d395b..2cbf74916c5 100644 --- a/llvm/tools/llvm-mc/AsmParser.cpp +++ b/llvm/tools/llvm-mc/AsmParser.cpp @@ -40,7 +40,7 @@ typedef StringMap<const MCSectionMachO*> MachOUniqueMapTy; AsmParser::AsmParser(SourceMgr &_SM, MCContext &_Ctx, MCStreamer &_Out, const MCAsmInfo &_MAI) - : Lexer(_SM, _MAI), Ctx(_Ctx), Out(_Out), TargetParser(0), + : Lexer(_SM, _MAI), Ctx(_Ctx), Out(_Out), SrcMgr(_SM), TargetParser(0), SectionUniquingMap(0) { // Debugging directives. AddDirectiveHandler(".file", &AsmParser::ParseDirectiveFile); diff --git a/llvm/tools/llvm-mc/AsmParser.h b/llvm/tools/llvm-mc/AsmParser.h index f1c330c132c..af43f45cffa 100644 --- a/llvm/tools/llvm-mc/AsmParser.h +++ b/llvm/tools/llvm-mc/AsmParser.h @@ -32,14 +32,16 @@ class MCInst; class MCStreamer; class MCAsmInfo; class MCValue; +class SourceMgr; class TargetAsmParser; class Twine; class AsmParser : public MCAsmParser { -private: +private: AsmLexer Lexer; MCContext &Ctx; MCStreamer &Out; + SourceMgr &SrcMgr; TargetAsmParser *TargetParser; AsmCond TheCondState; |

