From: Vladimir Medic Date: Tue, 16 Dec 2014 15:29:12 +0000 (+0000) Subject: The single check for N64 inside MipsDisassemblerBase's subclasses is actually wrong... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ca932f503b2132978fae1fcd37ae24c326951740;p=oota-llvm.git The single check for N64 inside MipsDisassemblerBase's subclasses is actually wrong. It should be testing for FeatureGP64bit.There are no functional changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224339 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Mips/Disassembler/MipsDisassembler.cpp b/lib/Target/Mips/Disassembler/MipsDisassembler.cpp index d29347d6213..e5355ef4333 100644 --- a/lib/Target/Mips/Disassembler/MipsDisassembler.cpp +++ b/lib/Target/Mips/Disassembler/MipsDisassembler.cpp @@ -36,15 +36,15 @@ public: MipsDisassemblerBase(const MCSubtargetInfo &STI, MCContext &Ctx, bool IsBigEndian) : MCDisassembler(STI, Ctx), - IsN64(STI.getFeatureBits() & Mips::FeatureN64), + IsGP64Bit(STI.getFeatureBits() & Mips::FeatureGP64Bit), IsBigEndian(IsBigEndian) {} virtual ~MipsDisassemblerBase() {} - bool isN64() const { return IsN64; } + bool isGP64Bit() const { return IsGP64Bit; } private: - bool IsN64; + bool IsGP64Bit; protected: bool IsBigEndian; }; @@ -974,7 +974,7 @@ static DecodeStatus DecodePtrRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder) { - if (static_cast(Decoder)->isN64()) + if (static_cast(Decoder)->isGP64Bit()) return DecodeGPR64RegisterClass(Inst, RegNo, Address, Decoder); return DecodeGPR32RegisterClass(Inst, RegNo, Address, Decoder);