[llvm-commits] CVS: llvm/include/llvm/Support/OutputBuffer.h

Bill Wendling isanbard at gmail.com
Sun Feb 4 18:37:23 PST 2007



Changes in directory llvm/include/llvm/Support:

OutputBuffer.h updated: 1.3 -> 1.4
---
Log message:

Use unsigned char& instead of std::vector<>::reference.


---
Diffs of the changes:  (+2 -4)

 OutputBuffer.h |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)


Index: llvm/include/llvm/Support/OutputBuffer.h
diff -u llvm/include/llvm/Support/OutputBuffer.h:1.3 llvm/include/llvm/Support/OutputBuffer.h:1.4
--- llvm/include/llvm/Support/OutputBuffer.h:1.3	Fri Feb  2 20:38:15 2007
+++ llvm/include/llvm/Support/OutputBuffer.h	Sun Feb  4 20:37:07 2007
@@ -139,12 +139,10 @@
         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];
     }
   };






More information about the llvm-commits mailing list