Promoted the reference to the SourceMgr from AsmLexer

into AsmParser, in preparation for making AsmLexer
independent of the SourceMgr


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94043 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sean Callanan 2010-01-20 22:45:23 +00:00
parent 79036e421f
commit 10d33a4937
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -32,6 +32,7 @@ class MCInst;
class MCStreamer;
class MCAsmInfo;
class MCValue;
class SourceMgr;
class TargetAsmParser;
class Twine;
@ -40,6 +41,7 @@ private:
AsmLexer Lexer;
MCContext &Ctx;
MCStreamer &Out;
SourceMgr &SrcMgr;
TargetAsmParser *TargetParser;
AsmCond TheCondState;