X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FSupport%2FMemoryObject.cpp;h=d796acfa90e76b637ad95521041cdccef75cbc45;hb=3f0e8837be1414981558186f9688c4ff35dc1815;hp=91e3ecd23a2e7f807c6840a43d7215b8c03e4419;hpb=2a1744f553442fbc3cd74114cbcd1305d91d8a90;p=oota-llvm.git diff --git a/lib/Support/MemoryObject.cpp b/lib/Support/MemoryObject.cpp index 91e3ecd23a2..d796acfa90e 100644 --- a/lib/Support/MemoryObject.cpp +++ b/lib/Support/MemoryObject.cpp @@ -12,23 +12,3 @@ using namespace llvm; MemoryObject::~MemoryObject() { } - -int MemoryObject::readBytes(uint64_t address, - uint64_t size, - uint8_t* buf, - uint64_t* copied) const { - uint64_t current = address; - uint64_t limit = getBase() + getExtent(); - - while (current - address < size && current < limit) { - if (readByte(current, &buf[(current - address)])) - return -1; - - current++; - } - - if (copied) - *copied = current - address; - - return 0; -}