Use unsigned char& instead of std::vector<>::reference.
[oota-llvm.git] / include / llvm / Support / OutputBuffer.h
index 73a4a631debd11be328ac539bcf8448f561aed21..6bbdd0b04e4dcc33631cc3f268b83f1f8c6a5af2 100644 (file)
@@ -138,6 +138,13 @@ namespace llvm {
       else
         assert(0 && "Emission of 64-bit data not implemented yet!");
     }
+
+    unsigned char &operator[](unsigned Index) {
+      return Output[Index];
+    }
+    const unsigned char &operator[](unsigned Index) const {
+      return Output[Index];
+    }
   };
   
 } // end llvm namespace