summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-02-03 02:38:15 +0000
committerBill Wendling <isanbard@gmail.com>2007-02-03 02:38:15 +0000
commit18e84b55a4164d7852e91668e55d22543a6b1ec2 (patch)
treeabadbec2978b3788c98e60915b15f49eec6b3905 /include
parent0f43b223209708da38610631e4ce5239597bffce (diff)
downloadllvm-18e84b55a4164d7852e91668e55d22543a6b1ec2.tar.gz
llvm-18e84b55a4164d7852e91668e55d22543a6b1ec2.tar.bz2
llvm-18e84b55a4164d7852e91668e55d22543a6b1ec2.tar.xz
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')
-rw-r--r--include/llvm/Support/OutputBuffer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Support/OutputBuffer.h b/include/llvm/Support/OutputBuffer.h
index 73a4a631de..2619ff90d7 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