diff options
author | Zachary Turner <zturner@google.com> | 2017-04-28 23:41:36 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-04-28 23:41:36 +0000 |
commit | 05bd9f3713112150fe9f146bf842c0182b2f955f (patch) | |
tree | 621c9925c8ed3dd7f82aaa0f04ab28043ffb7346 /llvm/lib/DebugInfo/PDB/Native/ModuleDebugStream.cpp | |
parent | 6cbc5638cbfd9b7adc3467eca013b8f29ceea6f2 (diff) | |
download | bcm5719-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.cpp | 3 |
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()); } |