From 05bd9f3713112150fe9f146bf842c0182b2f955f Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 28 Apr 2017 23:41:36 +0000 Subject: [llvm-readobj] Use LLVMDebugInfoCodeView to parse line tables. The llvm-readobj parsing code currently exists in our CodeView library, so we use that to parse instead of re-writing the logic in the tool. llvm-svn: 301718 --- llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp') diff --git a/llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp b/llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp index 56e415a3d54..e5eb01d5f52 100644 --- a/llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp @@ -73,9 +73,6 @@ Error ModuleDebugStream::reload() { iterator_range ModuleDebugStream::symbols(bool *HadError) const { - // It's OK if the stream is empty. - if (SymbolsSubstream.getUnderlyingStream().getLength() == 0) - return make_range(SymbolsSubstream.end(), SymbolsSubstream.end()); return make_range(SymbolsSubstream.begin(HadError), SymbolsSubstream.end()); } -- cgit v1.2.3