[llvm-commits] CVS: llvm/include/llvm/Support/OutputBuffer.h
Bill Wendling
isanbard at gmail.com
Fri Feb 2 18:38:31 PST 2007
Changes in directory llvm/include/llvm/Support:
OutputBuffer.h updated: 1.2 -> 1.3
---
Log message:
Added some accessor methods.
---
Diffs of the changes: (+9 -0)
OutputBuffer.h | 9 +++++++++
1 files changed, 9 insertions(+)
Index: llvm/include/llvm/Support/OutputBuffer.h
diff -u llvm/include/llvm/Support/OutputBuffer.h:1.2 llvm/include/llvm/Support/OutputBuffer.h:1.3
--- llvm/include/llvm/Support/OutputBuffer.h:1.2 Wed Jan 17 19:23:11 2007
+++ llvm/include/llvm/Support/OutputBuffer.h Fri Feb 2 20:38:15 2007
@@ -138,6 +138,15 @@
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
More information about the llvm-commits
mailing list