gallivm: Fix method overriding in raw_debug_ostream.
authorVinson Lee <vlee@freedesktop.org>
Wed, 28 Mar 2012 04:51:17 +0000 (21:51 -0700)
committerVinson Lee <vlee@freedesktop.org>
Thu, 29 Mar 2012 05:46:17 +0000 (22:46 -0700)
Use matching type qualifers to avoid method hiding.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp

index 903c8782f8d913a2c2093704f2fe371ae6a8131a..c5afff09ae6c5b89645d847ce7bf526c78409270 100644 (file)
@@ -83,12 +83,12 @@ class raw_debug_ostream :
    uint64_t pos;
 
    void write_impl(const char *Ptr, size_t Size);
-   uint64_t current_pos() { return pos; }
-   uint64_t current_pos() const { return pos; }
 
 #if HAVE_LLVM >= 0x207
-   uint64_t preferred_buffer_size() { return 512; }
+   uint64_t current_pos() const { return pos; }
+   size_t preferred_buffer_size() const { return 512; }
 #else
+   uint64_t current_pos() { return pos; }
    size_t preferred_buffer_size() { return 512; }
 #endif
 };