From e5094474187a9b748589aa709c3e1e172d42e87f Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Thu, 27 Apr 2017 16:11:47 +0000 Subject: [Support] Make BinaryStreamArray extractors stateless. Instead, we now pass a context memeber through the extraction process. llvm-svn: 301556 --- llvm/lib/DebugInfo/CodeView/ModuleDebugFragmentVisitor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/DebugInfo/CodeView/ModuleDebugFragmentVisitor.cpp') 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 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); } -- cgit v1.2.3