[llvm] r328802 - Remove unused function.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 29 09:46:47 PDT 2018
Author: zturner
Date: Thu Mar 29 09:46:47 2018
New Revision: 328802
URL: http://llvm.org/viewvc/llvm-project?rev=328802&view=rev
Log:
Remove unused function.
Modified:
llvm/trunk/tools/llvm-pdbutil/ExplainOutputStyle.cpp
Modified: llvm/trunk/tools/llvm-pdbutil/ExplainOutputStyle.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-pdbutil/ExplainOutputStyle.cpp?rev=328802&r1=328801&r2=328802&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-pdbutil/ExplainOutputStyle.cpp (original)
+++ llvm/trunk/tools/llvm-pdbutil/ExplainOutputStyle.cpp Thu Mar 29 09:46:47 2018
@@ -143,15 +143,7 @@ void ExplainOutputStyle::explainFpmBlock
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",
More information about the llvm-commits
mailing list