diff options
author | Zachary Turner <zturner@google.com> | 2017-04-27 16:11:47 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-04-27 16:11:47 +0000 |
commit | e5094474187a9b748589aa709c3e1e172d42e87f (patch) | |
tree | 0ab33779af40fdb5e1892d615f2850df35ee9c50 /llvm/lib/DebugInfo/CodeView/ModuleDebugFragmentVisitor.cpp | |
parent | 67c560140427d71bee50792ea76717fb76396656 (diff) | |
download | bcm5719-llvm-e5094474187a9b748589aa709c3e1e172d42e87f.tar.gz bcm5719-llvm-e5094474187a9b748589aa709c3e1e172d42e87f.zip |
[Support] Make BinaryStreamArray extractors stateless.
Instead, we now pass a context memeber through the extraction
process.
llvm-svn: 301556
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/ModuleDebugFragmentVisitor.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/CodeView/ModuleDebugFragmentVisitor.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/ModuleDebugFragmentVisitor.cpp b/llvm/lib/DebugInfo/CodeView/ModuleDebugFragmentVisitor.cpp index 8db17b94997..37cd887d783 100644 --- a/llvm/lib/DebugInfo/CodeView/ModuleDebugFragmentVisitor.cpp +++ b/llvm/lib/DebugInfo/CodeView/ModuleDebugFragmentVisitor.cpp @@ -68,9 +68,8 @@ Error llvm::codeview::visitModuleDebugFragment(const ModuleDebugFragment &R, const LineFragmentHeader *Header; if (auto EC = Reader.readObject(Header)) return EC; - VarStreamArrayExtractor<LineColumnEntry> E(Header); - LineInfoArray LineInfos(E); - if (auto EC = Reader.readArray(LineInfos, Reader.bytesRemaining())) + LineInfoArray LineInfos; + if (auto EC = Reader.readArray(LineInfos, Reader.bytesRemaining(), Header)) return EC; return V.visitLines(R.getRecordData(), Header, LineInfos); } |