mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 14:10:37 +02:00
gallivm: Change getExtent and readByte to non-const with llvm-3.1.
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@freedesktop.org> Reviewed-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
3340b47c22
commit
d5a6c17254
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue