Make a function const.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Sat, 28 Jul 2001 04:40:15 +0000 (04:40 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Sat, 28 Jul 2001 04:40:15 +0000 (04:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Instruction.h

index 85f5c0f42968db4902bea74d7cce7973f38f379c..978af62c314783f0fc6e5bfe30b7dc444dd7e086 100644 (file)
@@ -47,7 +47,7 @@ public:
   // ---------------------------------------------------------------------------
   // Machine code accessors...
   //
-  inline MachineCodeForVMInstr &getMachineInstrVec() {
+  inline MachineCodeForVMInstr &getMachineInstrVec() const {
     return *machineInstrVec; 
   }