Mercurial > hg > Members > tobaru > cbc > CbC_llvm
comparison include/llvm/MC/MCInstrInfo.h @ 120:1172e4bd9c6f
update 4.0.0
author | mir3636 |
---|---|
date | Fri, 25 Nov 2016 19:14:25 +0900 |
parents | afa8332a0e37 |
children |
comparison
equal
deleted
inserted
replaced
101:34baf5011add | 120:1172e4bd9c6f |
---|---|
46 assert(Opcode < NumOpcodes && "Invalid opcode!"); | 46 assert(Opcode < NumOpcodes && "Invalid opcode!"); |
47 return Desc[Opcode]; | 47 return Desc[Opcode]; |
48 } | 48 } |
49 | 49 |
50 /// \brief Returns the name for the instructions with the given opcode. | 50 /// \brief Returns the name for the instructions with the given opcode. |
51 const char *getName(unsigned Opcode) const { | 51 StringRef getName(unsigned Opcode) const { |
52 assert(Opcode < NumOpcodes && "Invalid opcode!"); | 52 assert(Opcode < NumOpcodes && "Invalid opcode!"); |
53 return &InstrNameData[InstrNameIndices[Opcode]]; | 53 return StringRef(&InstrNameData[InstrNameIndices[Opcode]]); |
54 } | 54 } |
55 }; | 55 }; |
56 | 56 |
57 } // End llvm namespace | 57 } // End llvm namespace |
58 | 58 |