[DWARF parser] Cleanup code in DWARFDebugLine.
authorAlexey Samsonov <samsonov@google.com>
Wed, 30 Apr 2014 00:09:19 +0000 (00:09 +0000)
committerAlexey Samsonov <samsonov@google.com>
Wed, 30 Apr 2014 00:09:19 +0000 (00:09 +0000)
commit1ea858937c0a2513b1d042c4baf83fd879beebba
treef4951999317d5237208f900283a1ed02d2540ae5
parent9902128e2a6450644fb4caf929ff0e3a2d6b0704
[DWARF parser] Cleanup code in DWARFDebugLine.

Streamline parsing and dumping line tables:
Prefer composition to multiple inheritance in DWARFDebugLine::ParsingState.
Get rid of the weird concept of "DumpingState" structure.

was:
  DWARFDebugLine::DumpingState state(OS);
  DWARFDebugLine::parseStatementTable(..., state);
now:
  DWARFDebugLine::LineTable LineTable;
  LineTable.parse(...);
  LineTable.dump(OS);

No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207599 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/DWARFContext.cpp
lib/DebugInfo/DWARFDebugLine.cpp
lib/DebugInfo/DWARFDebugLine.h