X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FSupport%2FMemoryObject.cpp;h=02b5b5034fbbe5fef132f1d7128aa0ee87eb39cb;hb=7116af637cf6e3e49b6329263fb1535fb9de73bc;hp=c82f46ae79439ae38dddacd42a9f5fee45b6f0f5;hpb=2ea93875b2f2900b9d244dfd7649c9ed02a34cd7;p=oota-llvm.git diff --git a/lib/Support/MemoryObject.cpp b/lib/Support/MemoryObject.cpp index c82f46ae794..02b5b5034fb 100644 --- a/lib/Support/MemoryObject.cpp +++ b/lib/Support/MemoryObject.cpp @@ -15,8 +15,7 @@ MemoryObject::~MemoryObject() { int MemoryObject::readBytes(uint64_t address, uint64_t size, - uint8_t* buf, - uint64_t* copied) { + uint8_t* buf) const { uint64_t current = address; uint64_t limit = getBase() + getExtent(); @@ -30,8 +29,5 @@ int MemoryObject::readBytes(uint64_t address, current++; } - if (copied) - *copied = current - address; - return 0; }