diff options
| author | Alexey Samsonov <samsonov@google.com> | 2014-04-29 21:28:13 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2014-04-29 21:28:13 +0000 |
| commit | 836b1aed05c5d909fb399e8de9a299f4c5bed1d6 (patch) | |
| tree | 38de4181c47aa1cc6f4898b8fe2cb49dd8ca3482 /llvm/lib/DebugInfo/DWARFContext.cpp | |
| parent | 152ee213a4eeef8eaf63716e41c054e3d7572b29 (diff) | |
| download | bcm5719-llvm-836b1aed05c5d909fb399e8de9a299f4c5bed1d6.tar.gz bcm5719-llvm-836b1aed05c5d909fb399e8de9a299f4c5bed1d6.zip | |
[DWARF parser] Cleanup code in DWARFDebugLine.
Move several function definitions into .cpp, unify constructors
and clear() methods (fixing a couple of latent bugs from copy-paste),
turn static function parsePrologue() into Prologue::parse().
More work needed here to untangle weird multiple inheritance
in table parsing and dumping.
No functionality change.
llvm-svn: 207579
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFContext.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/DWARFContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARFContext.cpp index 08b7b916377..6503207dae0 100644 --- a/llvm/lib/DebugInfo/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARFContext.cpp @@ -142,7 +142,7 @@ void DWARFContext::dump(raw_ostream &OS, DIDumpType DumpType) { DataExtractor lineData(getLineDWOSection().Data, isLittleEndian(), savedAddressByteSize); DWARFDebugLine::DumpingState state(OS); - while (DWARFDebugLine::parsePrologue(lineData, &stmtOffset, &state.Prologue)) + while (state.Prologue.parse(lineData, &stmtOffset)) state.finalize(); } |

