diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-31 08:09:09 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-31 08:09:09 +0000 |
commit | f4c67959b5ea0bbd3a39085c91c2d3162c6fd973 (patch) | |
tree | cc45bac3595da32dd301fe705ac49fa65a1d2599 /tools/llvm-mc | |
parent | b6a03e093598d90c10c8d1cab8425e3d107b12cf (diff) | |
download | external_llvm-f4c67959b5ea0bbd3a39085c91c2d3162c6fd973.zip external_llvm-f4c67959b5ea0bbd3a39085c91c2d3162c6fd973.tar.gz external_llvm-f4c67959b5ea0bbd3a39085c91c2d3162c6fd973.tar.bz2 |
llvm-mc: Simplify EmitAssignment ('.set' is identical to '=').
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mc')
-rw-r--r-- | tools/llvm-mc/AsmParser.cpp | 8 | ||||
-rw-r--r-- | tools/llvm-mc/AsmParser.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp index 0387857..dbceb6b 100644 --- a/tools/llvm-mc/AsmParser.cpp +++ b/tools/llvm-mc/AsmParser.cpp @@ -431,7 +431,7 @@ bool AsmParser::ParseStatement() { // identifier '=' ... -> assignment statement Lexer.Lex(); - return ParseAssignment(IDVal, false); + return ParseAssignment(IDVal); default: // Normal instruction or directive. break; @@ -708,7 +708,7 @@ bool AsmParser::ParseStatement() { return false; } -bool AsmParser::ParseAssignment(const StringRef &Name, bool IsDotSet) { +bool AsmParser::ParseAssignment(const StringRef &Name) { // FIXME: Use better location, we should use proper tokens. SMLoc EqualLoc = Lexer.getLoc(); @@ -737,7 +737,7 @@ bool AsmParser::ParseAssignment(const StringRef &Name, bool IsDotSet) { return Error(EqualLoc, "symbol has already been defined"); // Do the assignment. - Out.EmitAssignment(Sym, Value, IsDotSet); + Out.EmitAssignment(Sym, Value); return false; } @@ -769,7 +769,7 @@ bool AsmParser::ParseDirectiveSet() { return TokError("unexpected token in '.set'"); Lexer.Lex(); - return ParseAssignment(Name, true); + return ParseAssignment(Name); } /// ParseDirectiveSection: diff --git a/tools/llvm-mc/AsmParser.h b/tools/llvm-mc/AsmParser.h index fda79ca..7471a90 100644 --- a/tools/llvm-mc/AsmParser.h +++ b/tools/llvm-mc/AsmParser.h @@ -94,7 +94,7 @@ private: SMLoc DirectiveLoc); void EatToEndOfStatement(); - bool ParseAssignment(const StringRef &Name, bool IsDotSet); + bool ParseAssignment(const StringRef &Name); bool ParsePrimaryExpr(const MCExpr *&Res); bool ParseBinOpRHS(unsigned Precedence, const MCExpr *&Res); |