|
@@ -251,14 +251,14 @@ private:
|
|
|
bool parseStatement(ParseStatementInfo &Info,
|
|
|
MCAsmParserSemaCallback *SI);
|
|
|
void eatToEndOfLine();
|
|
|
- bool parseCppHashLineFilenameComment(const SMLoc &L);
|
|
|
+ bool parseCppHashLineFilenameComment(SMLoc L);
|
|
|
|
|
|
void checkForBadMacro(SMLoc DirectiveLoc, StringRef Name, StringRef Body,
|
|
|
ArrayRef<MCAsmMacroParameter> Parameters);
|
|
|
bool expandMacro(raw_svector_ostream &OS, StringRef Body,
|
|
|
ArrayRef<MCAsmMacroParameter> Parameters,
|
|
|
ArrayRef<MCAsmMacroArgument> A, bool EnableAtPseudoVariable,
|
|
|
- const SMLoc &L);
|
|
|
+ SMLoc L);
|
|
|
|
|
|
/// \brief Are macros enabled in the parser?
|
|
|
bool areMacrosEnabled() {return MacrosEnabledFlag;}
|
|
@@ -1706,7 +1706,7 @@ void AsmParser::eatToEndOfLine() {
|
|
|
/// parseCppHashLineFilenameComment as this:
|
|
|
/// ::= # number "filename"
|
|
|
/// or just as a full line comment if it doesn't have a number and a string.
|
|
|
-bool AsmParser::parseCppHashLineFilenameComment(const SMLoc &L) {
|
|
|
+bool AsmParser::parseCppHashLineFilenameComment(SMLoc L) {
|
|
|
Lex(); // Eat the hash token.
|
|
|
|
|
|
if (getLexer().isNot(AsmToken::Integer)) {
|
|
@@ -1746,7 +1746,7 @@ void AsmParser::DiagHandler(const SMDiagnostic &Diag, void *Context) {
|
|
|
raw_ostream &OS = errs();
|
|
|
|
|
|
const SourceMgr &DiagSrcMgr = *Diag.getSourceMgr();
|
|
|
- const SMLoc &DiagLoc = Diag.getLoc();
|
|
|
+ SMLoc DiagLoc = Diag.getLoc();
|
|
|
unsigned DiagBuf = DiagSrcMgr.FindBufferContainingLoc(DiagLoc);
|
|
|
unsigned CppHashBuf =
|
|
|
Parser->SrcMgr.FindBufferContainingLoc(Parser->CppHashLoc);
|
|
@@ -1805,7 +1805,7 @@ static bool isIdentifierChar(char c) {
|
|
|
bool AsmParser::expandMacro(raw_svector_ostream &OS, StringRef Body,
|
|
|
ArrayRef<MCAsmMacroParameter> Parameters,
|
|
|
ArrayRef<MCAsmMacroArgument> A,
|
|
|
- bool EnableAtPseudoVariable, const SMLoc &L) {
|
|
|
+ bool EnableAtPseudoVariable, SMLoc L) {
|
|
|
unsigned NParameters = Parameters.size();
|
|
|
bool HasVararg = NParameters ? Parameters.back().Vararg : false;
|
|
|
if ((!IsDarwin || NParameters != 0) && NParameters != A.size())
|