diff --git a/include/llvm/Support/OutputBuffer.h b/include/llvm/Support/OutputBuffer.h index 73a4a631deb..2619ff90d78 100644 --- a/include/llvm/Support/OutputBuffer.h +++ b/include/llvm/Support/OutputBuffer.h @@ -138,6 +138,15 @@ namespace llvm { else assert(0 && "Emission of 64-bit data not implemented yet!"); } + + std::vector::reference + operator [] (unsigned Index) { + return Output[Index]; + } + std::vector::const_reference + operator [] (unsigned Index) const { + return Output[Index]; + } }; } // end llvm namespace