diff --git a/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp b/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp index e927b60a4471..fc5231f552b1 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp @@ -66,10 +66,6 @@ std::error_code checkOffset(MemoryBufferRef M, ArrayRef 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; }