diff options
author | Zachary Turner <zturner@google.com> | 2017-06-09 17:54:36 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-06-09 17:54:36 +0000 |
commit | 7e62cd17d6813d66e46e7177574be81c665d8eab (patch) | |
tree | bdab66465650daaa10cf21e6c08222886c2c36c3 /llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp | |
parent | d9de6389fc705fd662b692c6fd3de640b3dc559e (diff) | |
download | bcm5719-llvm-7e62cd17d6813d66e46e7177574be81c665d8eab.tar.gz bcm5719-llvm-7e62cd17d6813d66e46e7177574be81c665d8eab.zip |
Allow VarStreamArray to use stateful extractors.
Previously extractors tried to be stateless with any additional
context information needed in order to parse items being passed
in via the extraction method. This led to quite cumbersome
implementation challenges and awkwardness of use. This patch
brings back support for stateful extractors, making the
implementation and usage simpler.
llvm-svn: 305093
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp b/llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp index e0ceefcd5fa..2c4a0b77934 100644 --- a/llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp +++ b/llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp @@ -16,9 +16,9 @@ using namespace llvm; using namespace llvm::codeview; namespace llvm { -Error VarStreamArrayExtractor<CrossModuleImportItem>::extract( - BinaryStreamRef Stream, uint32_t &Len, - codeview::CrossModuleImportItem &Item) { +Error VarStreamArrayExtractor<CrossModuleImportItem>:: +operator()(BinaryStreamRef Stream, uint32_t &Len, + codeview::CrossModuleImportItem &Item) { BinaryStreamReader Reader(Stream); if (Reader.bytesRemaining() < sizeof(CrossModuleImport)) return make_error<CodeViewError>( |