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:
8227d88
)
Use unsigned char& instead of std::vector<>::reference.
author
Bill Wendling
<isanbard@gmail.com>
Mon, 5 Feb 2007 02:37:07 +0000
(
02:37
+0000)
committer
Bill Wendling
<isanbard@gmail.com>
Mon, 5 Feb 2007 02:37:07 +0000
(
02:37
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33896
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 2619ff90d78add3d544de66ce8f835609bca2315..6bbdd0b04e4dcc33631cc3f268b83f1f8c6a5af2 100644
(file)
--- a/
include/llvm/Support/OutputBuffer.h
+++ b/
include/llvm/Support/OutputBuffer.h
@@
-139,12
+139,10
@@
namespace llvm {
assert(0 && "Emission of 64-bit data not implemented yet!");
}
- std::vector<unsigned char>::reference
- operator [] (unsigned Index) {
+ unsigned char &operator[](unsigned Index) {
return Output[Index];
}
- std::vector<unsigned char>::const_reference
- operator [] (unsigned Index) const {
+ const unsigned char &operator[](unsigned Index) const {
return Output[Index];
}
};