Revert "[Windows] Simplify assertion code. NFC."
[oota-llvm.git] / lib / Support / MemoryObject.cpp
index c82f46ae79439ae38dddacd42a9f5fee45b6f0f5..d796acfa90e76b637ad95521041cdccef75cbc45 100644 (file)
@@ -12,26 +12,3 @@ using namespace llvm;
   
 MemoryObject::~MemoryObject() {
 }
-
-int MemoryObject::readBytes(uint64_t address,
-                            uint64_t size,
-                            uint8_t* buf,
-                            uint64_t* copied) {
-  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++;
-  }
-  
-  if (copied)
-    *copied = current - address;
-  
-  return 0;
-}