From db0f2f68b0651bd206aa36976b0760efb1410597 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Thu, 29 Mar 2018 16:46:47 +0000 Subject: [PATCH] Remove unused function. llvm-svn: 328802 --- llvm/tools/llvm-pdbutil/ExplainOutputStyle.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/llvm/tools/llvm-pdbutil/ExplainOutputStyle.cpp b/llvm/tools/llvm-pdbutil/ExplainOutputStyle.cpp index 1947c93d9811..48e8e1ee3740 100644 --- a/llvm/tools/llvm-pdbutil/ExplainOutputStyle.cpp +++ b/llvm/tools/llvm-pdbutil/ExplainOutputStyle.cpp @@ -143,15 +143,7 @@ void ExplainOutputStyle::explainFpmBlockOffset() { DescribedBlockStart, DescribedBlockStart + 8); } -static bool offsetIsInBlock(const PDBFile &File, uint64_t Offset, - uint32_t Block) { - uint64_t BlockOffset = uint64_t(Block) * File.getBlockSize(); - uint64_t BlockOffset1 = BlockOffset + File.getBlockSize(); - return (Offset >= BlockOffset && Offset < BlockOffset1); -} - void ExplainOutputStyle::explainBlockMapOffset() { - assert(offsetIsInBlock(File, FileOffset, File.getBlockMapIndex())); uint64_t BlockMapOffset = File.getBlockMapOffset(); uint32_t OffsetInBlock = FileOffset - BlockMapOffset; P.formatLine("Address is at offset {0} of the directory block list",