forked from OSchip/llvm-project
Remove unused field MacroInstantiation::TheMacro. No behavior change.
llvm-svn: 213874
This commit is contained in:
parent
404012b7dc
commit
2a8f922b1c
|
@ -80,9 +80,6 @@ public:
|
||||||
/// \brief Helper class for storing information about an active macro
|
/// \brief Helper class for storing information about an active macro
|
||||||
/// instantiation.
|
/// instantiation.
|
||||||
struct MacroInstantiation {
|
struct MacroInstantiation {
|
||||||
/// The macro being instantiated.
|
|
||||||
const MCAsmMacro *TheMacro;
|
|
||||||
|
|
||||||
/// The macro instantiation with substitutions.
|
/// The macro instantiation with substitutions.
|
||||||
MemoryBuffer *Instantiation;
|
MemoryBuffer *Instantiation;
|
||||||
|
|
||||||
|
@ -96,8 +93,7 @@ struct MacroInstantiation {
|
||||||
SMLoc ExitLoc;
|
SMLoc ExitLoc;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MacroInstantiation(const MCAsmMacro *M, SMLoc IL, int EB, SMLoc EL,
|
MacroInstantiation(SMLoc IL, int EB, SMLoc EL, MemoryBuffer *I);
|
||||||
MemoryBuffer *I);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ParseStatementInfo {
|
struct ParseStatementInfo {
|
||||||
|
@ -1861,10 +1857,9 @@ bool AsmParser::expandMacro(raw_svector_ostream &OS, StringRef Body,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
MacroInstantiation::MacroInstantiation(const MCAsmMacro *M, SMLoc IL, int EB,
|
MacroInstantiation::MacroInstantiation(SMLoc IL, int EB, SMLoc EL,
|
||||||
SMLoc EL, MemoryBuffer *I)
|
MemoryBuffer *I)
|
||||||
: TheMacro(M), Instantiation(I), InstantiationLoc(IL), ExitBuffer(EB),
|
: Instantiation(I), InstantiationLoc(IL), ExitBuffer(EB), ExitLoc(EL) {}
|
||||||
ExitLoc(EL) {}
|
|
||||||
|
|
||||||
static bool isOperator(AsmToken::TokenKind kind) {
|
static bool isOperator(AsmToken::TokenKind kind) {
|
||||||
switch (kind) {
|
switch (kind) {
|
||||||
|
@ -2128,7 +2123,7 @@ bool AsmParser::handleMacroEntry(const MCAsmMacro *M, SMLoc NameLoc) {
|
||||||
// Create the macro instantiation object and add to the current macro
|
// Create the macro instantiation object and add to the current macro
|
||||||
// instantiation stack.
|
// instantiation stack.
|
||||||
MacroInstantiation *MI = new MacroInstantiation(
|
MacroInstantiation *MI = new MacroInstantiation(
|
||||||
M, NameLoc, CurBuffer, getTok().getLoc(), Instantiation);
|
NameLoc, CurBuffer, getTok().getLoc(), Instantiation);
|
||||||
ActiveMacros.push_back(MI);
|
ActiveMacros.push_back(MI);
|
||||||
|
|
||||||
// Jump to the macro instantiation and prime the lexer.
|
// Jump to the macro instantiation and prime the lexer.
|
||||||
|
@ -4292,7 +4287,7 @@ void AsmParser::instantiateMacroLikeBody(MCAsmMacro *M, SMLoc DirectiveLoc,
|
||||||
// Create the macro instantiation object and add to the current macro
|
// Create the macro instantiation object and add to the current macro
|
||||||
// instantiation stack.
|
// instantiation stack.
|
||||||
MacroInstantiation *MI = new MacroInstantiation(
|
MacroInstantiation *MI = new MacroInstantiation(
|
||||||
M, DirectiveLoc, CurBuffer, getTok().getLoc(), Instantiation);
|
DirectiveLoc, CurBuffer, getTok().getLoc(), Instantiation);
|
||||||
ActiveMacros.push_back(MI);
|
ActiveMacros.push_back(MI);
|
||||||
|
|
||||||
// Jump to the macro instantiation and prime the lexer.
|
// Jump to the macro instantiation and prime the lexer.
|
||||||
|
|
Loading…
Reference in New Issue