summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-02-05 02:37:07 +0000
committerBill Wendling <isanbard@gmail.com>2007-02-05 02:37:07 +0000
commit05c0b9ad7907e452a3a1c7afcbd8507d5b0c9626 (patch)
treef4bd3b8a47b5e37a636d7f8b82e96eb18c9b19a8 /include
parent8227d886b8a1d4fd9da18eef757cad60380d25f3 (diff)
downloadllvm-05c0b9ad7907e452a3a1c7afcbd8507d5b0c9626.tar.gz
llvm-05c0b9ad7907e452a3a1c7afcbd8507d5b0c9626.tar.bz2
llvm-05c0b9ad7907e452a3a1c7afcbd8507d5b0c9626.tar.xz
Use unsigned char& instead of std::vector<>::reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33896 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/OutputBuffer.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/Support/OutputBuffer.h b/include/llvm/Support/OutputBuffer.h
index 2619ff90d7..6bbdd0b04e 100644
--- 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];
}
};