diff options
author | Bill Wendling <isanbard@gmail.com> | 2007-02-03 02:38:15 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2007-02-03 02:38:15 +0000 |
commit | 18e84b55a4164d7852e91668e55d22543a6b1ec2 (patch) | |
tree | abadbec2978b3788c98e60915b15f49eec6b3905 /include/llvm/Support/OutputBuffer.h | |
parent | 0f43b223209708da38610631e4ce5239597bffce (diff) | |
download | external_llvm-18e84b55a4164d7852e91668e55d22543a6b1ec2.zip external_llvm-18e84b55a4164d7852e91668e55d22543a6b1ec2.tar.gz external_llvm-18e84b55a4164d7852e91668e55d22543a6b1ec2.tar.bz2 |
Added some accessor methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/OutputBuffer.h')
-rw-r--r-- | include/llvm/Support/OutputBuffer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Support/OutputBuffer.h b/include/llvm/Support/OutputBuffer.h index 73a4a63..2619ff9 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<unsigned char>::reference + operator [] (unsigned Index) { + return Output[Index]; + } + std::vector<unsigned char>::const_reference + operator [] (unsigned Index) const { + return Output[Index]; + } }; } // end llvm namespace |