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