summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/StringRefMemoryObject.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-11-12 02:13:27 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-11-12 02:13:27 +0000
commitcac0088e9192467621dea9824296bf2447722464 (patch)
tree9e2f413e7eab373664cea8f9d29aca9a5da9e879 /llvm/lib/Support/StringRefMemoryObject.cpp
parent775118a28bcaead62e6db7bf1959e0503691d185 (diff)
downloadbcm5719-llvm-cac0088e9192467621dea9824296bf2447722464.tar.gz
bcm5719-llvm-cac0088e9192467621dea9824296bf2447722464.zip
Remove the now unused StringRefMemoryObject.h.
llvm-svn: 221755
Diffstat (limited to 'llvm/lib/Support/StringRefMemoryObject.cpp')
-rw-r--r--llvm/lib/Support/StringRefMemoryObject.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/llvm/lib/Support/StringRefMemoryObject.cpp b/llvm/lib/Support/StringRefMemoryObject.cpp
deleted file mode 100644
index e035ed1d2ef..00000000000
--- a/llvm/lib/Support/StringRefMemoryObject.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-//===- lib/Support/StringRefMemoryObject.cpp --------------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include "llvm/Support/StringRefMemoryObject.h"
-
-using namespace llvm;
-
-int StringRefMemoryObject::readByte(uint64_t Addr, uint8_t *Byte) const {
- if (Addr >= Base + getExtent() || Addr < Base)
- return -1;
- *Byte = Bytes[Addr - Base];
- return 0;
-}
-
-int StringRefMemoryObject::readBytes(uint64_t Addr,
- uint64_t Size,
- uint8_t *Buf) const {
- uint64_t Offset = Addr - Base;
- if (Addr >= Base + getExtent() || Offset + Size > getExtent() || Addr < Base)
- return -1;
- memcpy(Buf, Bytes.data() + Offset, Size);
- return 0;
-}
OpenPOWER on IntegriCloud