[Mesa-dev] [PATCH] gallivm: Change getExtent and readByte to non-const with llvm-3.1.
Jose Fonseca
jfonseca at vmware.com
Thu Feb 9 05:23:35 PST 2012
I haven't tested LLVM-3.1 myself but seems good to me. Thanks Vinson.
Jose
----- Original Message -----
> Fix build with llvm-3.1svn.
>
> llvm-3.1svn r149918 changed BufferMemoryObject::getExtent and
> BufferMemoryObject::readByte from const member functions to non-const
> member functions in include/llvm/Support/MemoryObject.h.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
> src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
> b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
> index be8d788..5d98763 100644
> --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
> +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
> @@ -146,12 +146,20 @@ 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;
> --
> 1.7.9
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
More information about the mesa-dev
mailing list