mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Promoted the reference to the SourceMgr from AsmLexer
into AsmParser, in preparation for making AsmLexer independent of the SourceMgr llvm-svn: 94043
This commit is contained in:
parent
cddf628d31
commit
3c0fb5c7bb
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user