projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f43b22
)
Added some accessor methods.
author
Bill Wendling
<isanbard@gmail.com>
Sat, 3 Feb 2007 02:38:15 +0000
(
02:38
+0000)
committer
Bill Wendling
<isanbard@gmail.com>
Sat, 3 Feb 2007 02:38:15 +0000
(
02:38
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33814
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/OutputBuffer.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/OutputBuffer.h
b/include/llvm/Support/OutputBuffer.h
index 73a4a631debd11be328ac539bcf8448f561aed21..2619ff90d78add3d544de66ce8f835609bca2315 100644
(file)
--- 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