Remove dead code. NFC

llvm-svn: 267069
This commit is contained in:
Amaury Sechet 2016-04-21 22:17:39 +00:00
parent d01a7a7894
commit d46e58d38e
1 changed files with 0 additions and 4 deletions

View File

@ -66,10 +66,6 @@ std::error_code checkOffset(MemoryBufferRef M, ArrayRef<T> AR) {
return checkOffset(M, uintptr_t(AR.data()), (uint64_t)AR.size() * sizeof(T));
}
std::error_code checkOffset(MemoryBufferRef M, StringRef SR) {
return checkOffset(M, uintptr_t(SR.data()), SR.size());
}
uint64_t bytesToBlocks(uint64_t NumBytes, uint64_t BlockSize) {
return alignTo(NumBytes, BlockSize) / BlockSize;
}