[llvm] r235950 - [MC] Move getBinOpPrecedence into AsmParser. NFC.
Ahmed Bougacha
ahmed.bougacha at gmail.com
Mon Apr 27 17:17:39 PDT 2015
Author: ab
Date: Mon Apr 27 19:17:39 2015
New Revision: 235950
URL: http://llvm.org/viewvc/llvm-project?rev=235950&view=rev
Log:
[MC] Move getBinOpPrecedence into AsmParser. NFC.
In preparation for a future patch.
Modified:
llvm/trunk/lib/MC/MCParser/AsmParser.cpp
Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=235950&r1=235949&r2=235950&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Mon Apr 27 19:17:39 2015
@@ -326,6 +326,9 @@ private:
bool parseAssignment(StringRef Name, bool allow_redef,
bool NoDeadStrip = false);
+ unsigned getBinOpPrecedence(AsmToken::TokenKind K,
+ MCBinaryExpr::Opcode &Kind);
+
bool parseBinOpRHS(unsigned Precedence, const MCExpr *&Res, SMLoc &EndLoc);
bool parseParenExpr(const MCExpr *&Res, SMLoc &EndLoc);
bool parseBracketExpr(const MCExpr *&Res, SMLoc &EndLoc);
@@ -1072,8 +1075,8 @@ bool AsmParser::parseAbsoluteExpression(
return false;
}
-static unsigned getBinOpPrecedence(AsmToken::TokenKind K,
- MCBinaryExpr::Opcode &Kind) {
+unsigned AsmParser::getBinOpPrecedence(AsmToken::TokenKind K,
+ MCBinaryExpr::Opcode &Kind) {
switch (K) {
default:
return 0; // not a binop.
More information about the llvm-commits
mailing list