X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FSupport%2FMemoryObject.cpp;h=02b5b5034fbbe5fef132f1d7128aa0ee87eb39cb;hb=285133714f0d995e0e14a77e23a0abe5dfc32d17;hp=b20ab8923813215845aa1a517505b95ddc319cd2;hpb=adef06a71458ded0716935a61b3d43d164d4df12;p=oota-llvm.git diff --git a/lib/Support/MemoryObject.cpp b/lib/Support/MemoryObject.cpp index b20ab892381..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) const { + 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; }