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>
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;