Browse Source

gallivm: Fix method overriding in raw_debug_ostream.

Use matching type qualifers to avoid method hiding.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
tags/i965-primitive-restart-v2
Vinson Lee 13 years ago
parent
commit
a7b8e16dc6
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/gallium/auxiliary/gallivm/lp_bld_debug.cpp

+ 3
- 3
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp View 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
};

Loading…
Cancel
Save