Remove the non-const getInst accessor. It wasn't being used, and isn't very
authorEli Bendersky <eliben@google.com>
Wed, 5 Dec 2012 19:31:33 +0000 (19:31 +0000)
committerEli Bendersky <eliben@google.com>
Wed, 5 Dec 2012 19:31:33 +0000 (19:31 +0000)
good for enacpsulation anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169407 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCAssembler.h

index 18d0010a5e50827a168fc8a72cc5d522b2c07cd6..91c743bbda2791bfbf5ee9922195ac15fa08a16c 100644 (file)
@@ -184,10 +184,7 @@ public:
   const SmallVectorImpl<char> &getCode() const { return Code; }
 
   unsigned getInstSize() const { return Code.size(); }
-
-  MCInst &getInst() { return Inst; }
   const MCInst &getInst() const { return Inst; }
-
   void setInst(const MCInst& Value) { Inst = Value; }
 
   /// @}