@@ -164,7 +164,7 @@ class X86AsmParser : public MCTargetAsmParser {
164
164
SmallVector<InfixCalculatorTok, 4 > InfixOperatorStack;
165
165
SmallVector<ICToken, 4 > PostfixStack;
166
166
167
- bool isUnaryOperator (const InfixCalculatorTok Op) {
167
+ bool isUnaryOperator (InfixCalculatorTok Op) const {
168
168
return Op == IC_NEG || Op == IC_NOT;
169
169
}
170
170
@@ -395,24 +395,24 @@ class X86AsmParser : public MCTargetAsmParser {
395
395
MemExpr(false ), OffsetOperator(false ) {}
396
396
397
397
void addImm (int64_t imm) { Imm += imm; }
398
- short getBracCount () { return BracCount; }
399
- bool isMemExpr () { return MemExpr; }
400
- bool isOffsetOperator () { return OffsetOperator; }
401
- SMLoc getOffsetLoc () { return OffsetOperatorLoc; }
402
- unsigned getBaseReg () { return BaseReg; }
403
- unsigned getIndexReg () { return IndexReg; }
404
- unsigned getScale () { return Scale; }
405
- const MCExpr *getSym () { return Sym; }
406
- StringRef getSymName () { return SymName; }
407
- StringRef getType () { return CurType.Name ; }
408
- unsigned getSize () { return CurType.Size ; }
409
- unsigned getElementSize () { return CurType.ElementSize ; }
410
- unsigned getLength () { return CurType.Length ; }
398
+ short getBracCount () const { return BracCount; }
399
+ bool isMemExpr () const { return MemExpr; }
400
+ bool isOffsetOperator () const { return OffsetOperator; }
401
+ SMLoc getOffsetLoc () const { return OffsetOperatorLoc; }
402
+ unsigned getBaseReg () const { return BaseReg; }
403
+ unsigned getIndexReg () const { return IndexReg; }
404
+ unsigned getScale () const { return Scale; }
405
+ const MCExpr *getSym () const { return Sym; }
406
+ StringRef getSymName () const { return SymName; }
407
+ StringRef getType () const { return CurType.Name ; }
408
+ unsigned getSize () const { return CurType.Size ; }
409
+ unsigned getElementSize () const { return CurType.ElementSize ; }
410
+ unsigned getLength () const { return CurType.Length ; }
411
411
int64_t getImm () { return Imm + IC.execute (); }
412
- bool isValidEndState () {
412
+ bool isValidEndState () const {
413
413
return State == IES_RBRAC || State == IES_INTEGER;
414
414
}
415
- bool hadError () { return State == IES_ERROR; }
415
+ bool hadError () const { return State == IES_ERROR; }
416
416
const InlineAsmIdentifierInfo &getIdentifierInfo () const { return Info; }
417
417
418
418
void onOr () {
0 commit comments