mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
MIR Parser: Rename the standalone parsing methods. NFC.
This commit renames the methods 'parseMBB' and 'parseNamedRegister' to 'parseStandaloneMBB' and 'parseStandaloneNamedRegister' in order for their names to be consistent with the method 'parseStandaloneVirtualRegister'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243319 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
272154cc86
commit
342851440d
@ -96,8 +96,8 @@ public:
|
||||
bool error(StringRef::iterator Loc, const Twine &Msg);
|
||||
|
||||
bool parse(MachineInstr *&MI);
|
||||
bool parseMBB(MachineBasicBlock *&MBB);
|
||||
bool parseNamedRegister(unsigned &Reg);
|
||||
bool parseStandaloneMBB(MachineBasicBlock *&MBB);
|
||||
bool parseStandaloneNamedRegister(unsigned &Reg);
|
||||
bool parseStandaloneVirtualRegister(unsigned &Reg);
|
||||
|
||||
bool parseRegister(unsigned &Reg);
|
||||
@ -265,7 +265,7 @@ bool MIParser::parse(MachineInstr *&MI) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MIParser::parseMBB(MachineBasicBlock *&MBB) {
|
||||
bool MIParser::parseStandaloneMBB(MachineBasicBlock *&MBB) {
|
||||
lex();
|
||||
if (Token.isNot(MIToken::MachineBasicBlock))
|
||||
return error("expected a machine basic block reference");
|
||||
@ -278,7 +278,7 @@ bool MIParser::parseMBB(MachineBasicBlock *&MBB) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MIParser::parseNamedRegister(unsigned &Reg) {
|
||||
bool MIParser::parseStandaloneNamedRegister(unsigned &Reg) {
|
||||
lex();
|
||||
if (Token.isNot(MIToken::NamedRegister))
|
||||
return error("expected a named register");
|
||||
@ -846,7 +846,7 @@ bool llvm::parseMBBReference(MachineBasicBlock *&MBB, SourceMgr &SM,
|
||||
MachineFunction &MF, StringRef Src,
|
||||
const PerFunctionMIParsingState &PFS,
|
||||
const SlotMapping &IRSlots, SMDiagnostic &Error) {
|
||||
return MIParser(SM, MF, Error, Src, PFS, IRSlots).parseMBB(MBB);
|
||||
return MIParser(SM, MF, Error, Src, PFS, IRSlots).parseStandaloneMBB(MBB);
|
||||
}
|
||||
|
||||
bool llvm::parseNamedRegisterReference(unsigned &Reg, SourceMgr &SM,
|
||||
@ -854,7 +854,8 @@ bool llvm::parseNamedRegisterReference(unsigned &Reg, SourceMgr &SM,
|
||||
const PerFunctionMIParsingState &PFS,
|
||||
const SlotMapping &IRSlots,
|
||||
SMDiagnostic &Error) {
|
||||
return MIParser(SM, MF, Error, Src, PFS, IRSlots).parseNamedRegister(Reg);
|
||||
return MIParser(SM, MF, Error, Src, PFS, IRSlots)
|
||||
.parseStandaloneNamedRegister(Reg);
|
||||
}
|
||||
|
||||
bool llvm::parseVirtualRegisterReference(unsigned &Reg, SourceMgr &SM,
|
||||
|
Loading…
x
Reference in New Issue
Block a user