diff 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
line wrap: on
line diff
--- a/include/llvm/MC/MCInstrInfo.h	Tue Jan 26 22:56:36 2016 +0900
+++ b/include/llvm/MC/MCInstrInfo.h	Fri Nov 25 19:14:25 2016 +0900
@@ -48,9 +48,9 @@
   }
 
   /// \brief Returns the name for the instructions with the given opcode.
-  const char *getName(unsigned Opcode) const {
+  StringRef getName(unsigned Opcode) const {
     assert(Opcode < NumOpcodes && "Invalid opcode!");
-    return &InstrNameData[InstrNameIndices[Opcode]];
+    return StringRef(&InstrNameData[InstrNameIndices[Opcode]]);
   }
 };