diff options
Diffstat (limited to 'llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp b/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp index f8ff863..9faad9b 100644 --- a/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp +++ b/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp @@ -363,7 +363,7 @@ DecodeStatus PPCDisassembler::getInstruction(MCInst &MI, uint64_t &Size, // TODO: In this function we call decodeInstruction several times with // different decoder tables. It may be possible to only call once by // looking at the top 6 bits of the instruction. - if (STI.getFeatureBits()[PPC::FeaturePrefixInstrs] && Bytes.size() >= 8) { + if (STI.hasFeature(PPC::FeaturePrefixInstrs) && Bytes.size() >= 8) { uint32_t Prefix = ReadFunc(Bytes.data()); uint32_t BaseInst = ReadFunc(Bytes.data() + 4); uint64_t Inst = BaseInst | (uint64_t)Prefix << 32; @@ -385,7 +385,7 @@ DecodeStatus PPCDisassembler::getInstruction(MCInst &MI, uint64_t &Size, // Read the instruction in the proper endianness. uint64_t Inst = ReadFunc(Bytes.data()); - if (STI.getFeatureBits()[PPC::FeatureSPE]) { + if (STI.hasFeature(PPC::FeatureSPE)) { DecodeStatus result = decodeInstruction(DecoderTableSPE32, MI, Inst, Address, this, STI); if (result != MCDisassembler::Fail) |