summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-04-28 23:41:36 +0000
committerZachary Turner <zturner@google.com>2017-04-28 23:41:36 +0000
commit05bd9f3713112150fe9f146bf842c0182b2f955f (patch)
tree621c9925c8ed3dd7f82aaa0f04ab28043ffb7346 /llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp
parent6cbc5638cbfd9b7adc3467eca013b8f29ceea6f2 (diff)
downloadbcm5719-llvm-05bd9f3713112150fe9f146bf842c0182b2f955f.tar.gz
bcm5719-llvm-05bd9f3713112150fe9f146bf842c0182b2f955f.zip
[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
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp3
1 files changed, 0 insertions, 3 deletions
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<codeview::CVSymbolArray::Iterator>
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());
}
OpenPOWER on IntegriCloud