diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-02-23 21:26:51 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-02-23 21:26:51 +0000 |
commit | 0c03a3a146b3a4df9cf14e230467627ffe74ef73 (patch) | |
tree | 43a066e3d1ffd86d9dbf3e5aef236487039374a6 /llvm/lib/MC | |
parent | d88d96cac91bea19f4a622c29d1430ed9d416797 (diff) | |
download | bcm5719-llvm-0c03a3a146b3a4df9cf14e230467627ffe74ef73.tar.gz bcm5719-llvm-0c03a3a146b3a4df9cf14e230467627ffe74ef73.zip |
Revert r125595, which is an X86-only undocumented assembly syntax extension
enabled for all targets. Non-X86 targets should not have this behavior
enabled by default.
Joerg, if you would like to resubmit with the behavior conditionalized to be
X86-ELF only, that's fine.
llvm-svn: 126336
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r-- | llvm/lib/MC/MCParser/AsmParser.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index c6d0da609b3..ae072d883ba 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/lib/MC/MCParser/AsmParser.cpp @@ -173,7 +173,6 @@ private: bool ParsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc); bool ParseBinOpRHS(unsigned Precedence, const MCExpr *&Res, SMLoc &EndLoc); bool ParseParenExpr(const MCExpr *&Res, SMLoc &EndLoc); - bool ParseBracketExpr(const MCExpr *&Res, SMLoc &EndLoc); /// ParseIdentifier - Parse an identifier or string (as a quoted identifier) /// and set \arg Res to the identifier contents. @@ -493,20 +492,6 @@ bool AsmParser::ParseParenExpr(const MCExpr *&Res, SMLoc &EndLoc) { return false; } -/// ParseBracketExpr - Parse a bracket expression and return it. -/// NOTE: This assumes the leading '[' has already been consumed. -/// -/// bracketexpr ::= expr] -/// -bool AsmParser::ParseBracketExpr(const MCExpr *&Res, SMLoc &EndLoc) { - if (ParseExpression(Res)) return true; - if (Lexer.isNot(AsmToken::RBrac)) - return TokError("expected ']' in brackets expression"); - EndLoc = Lexer.getLoc(); - Lex(); - return false; -} - /// ParsePrimaryExpr - Parse a primary expression and return it. /// primaryexpr ::= (parenexpr /// primaryexpr ::= symbol @@ -602,9 +587,6 @@ bool AsmParser::ParsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc) { case AsmToken::LParen: Lex(); // Eat the '('. return ParseParenExpr(Res, EndLoc); - case AsmToken::LBrac: - Lex(); // Eat the '['. - return ParseBracketExpr(Res, EndLoc); case AsmToken::Minus: Lex(); // Eat the operator. if (ParsePrimaryExpr(Res, EndLoc)) |