Module: Mesa
Branch: master
Commit: 834f515988ca894b3828a4929d36cafd349eade8
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=834f515988ca894b3828a4929d36cafd349eade8

Author: Vinson Lee <[email protected]>
Date:   Wed Feb 29 21:20:53 2012 -0800

Revert "gallivm: Change getExtent and readByte to non-const with llvm-3.1."

This reverts commit d5a6c172547d8964f4d4bb79637651decaf9deee.

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

Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Brian Paul <[email protected]>

---

 src/gallium/auxiliary/gallivm/lp_bld_debug.cpp |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp 
b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index 43aaf64..11209da 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -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;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to