Revert "gallivm: Change getExtent and readByte to non-const with llvm-3.1."
authorVinson Lee <vlee@freedesktop.org>
Thu, 1 Mar 2012 05:20:53 +0000 (21:20 -0800)
committerVinson Lee <vlee@freedesktop.org>
Thu, 1 Mar 2012 18:36:06 +0000 (10:36 -0800)
This reverts commit d5a6c172547d8964f4d4bb79637651decaf9deee.

llvm-3.1svn r151687 makes MemoryObject accessor members const again.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp

index 43aaf64a64e36298c57278e45cf704d71227ed65..11209da78ef5551456d8b67ad31da795e837a18f 100644 (file)
@@ -146,20 +146,12 @@ public:
       return 0;
    }
 
-#if HAVE_LLVM >= 0x0301
-   uint64_t getExtent()
-#else
    uint64_t getExtent() const
-#endif
    {
       return Length;
    }
 
-#if HAVE_LLVM >= 0x0301
-   int readByte(uint64_t addr, uint8_t *byte)
-#else
    int readByte(uint64_t addr, uint8_t *byte) const
-#endif
    {
       if (addr > getExtent())
          return -1;