summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-04-09 20:58:48 +0000
committerChad Rosier <mcrosier@apple.com>2013-04-09 20:58:48 +0000
commit18785857d403f3402dee78f7276d5566d93eba2e (patch)
tree1da858b19008cc49bb6e34e5901bb98ad18b2070 /llvm/lib
parent9fbb842c6d0cda4745c7ec2c383c4fb63777d9ad (diff)
downloadbcm5719-llvm-18785857d403f3402dee78f7276d5566d93eba2e.tar.gz
bcm5719-llvm-18785857d403f3402dee78f7276d5566d93eba2e.zip
Cleanup. No functional change intended.
llvm-svn: 179129
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
index 2c5edbc7e26..60a02702eb7 100644
--- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -1394,13 +1394,13 @@ bool X86AsmParser::ParseIntelDotOperator(const MCExpr *Disp,
/// Parse the 'offset' operator. This operator is used to specify the
/// location rather then the content of a variable.
X86Operand *X86AsmParser::ParseIntelOffsetOfOperator() {
- AsmToken Tok = *&Parser.getTok();
+ const AsmToken &Tok = Parser.getTok();
SMLoc OffsetOfLoc = Tok.getLoc();
Parser.Lex(); // Eat offset.
assert (Tok.is(AsmToken::Identifier) && "Expected an identifier");
- SMLoc Start = Parser.getTok().getLoc(), End;
const MCExpr *Val;
+ SMLoc Start = Tok.getLoc(), End;
if (getParser().parseExpression(Val, End))
return ErrorOperand(Start, "Unable to parse expression!");
@@ -1430,13 +1430,13 @@ enum IntelOperatorKind {
/// TYPE operator returns the size of a C or C++ type or variable. If the
/// variable is an array, TYPE returns the size of a single element.
X86Operand *X86AsmParser::ParseIntelOperator(unsigned OpKind) {
- AsmToken Tok = *&Parser.getTok();
+ const AsmToken &Tok = Parser.getTok();
SMLoc TypeLoc = Tok.getLoc();
Parser.Lex(); // Eat operator.
- assert (Parser.getTok().is(AsmToken::Identifier) && "Expected an identifier");
+ assert (Tok.is(AsmToken::Identifier) && "Expected an identifier");
const MCExpr *Val;
- SMLoc Start = Parser.getTok().getLoc(), End;
+ SMLoc Start = Tok.getLoc(), End;
if (getParser().parseExpression(Val, End))
return 0;
OpenPOWER on IntegriCloud