diff options
author | Frederic Riss <friss@apple.com> | 2015-02-25 21:30:16 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2015-02-25 21:30:16 +0000 |
commit | 056ad058bbae36ae70fbbc6cee5744dccadfbe93 (patch) | |
tree | 7fc1e57310212a85fa7bbec476638732fbef1e5f /llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp | |
parent | 41bb2c6d4fcb2c3cb81c23afd5cc0a5c00f71b58 (diff) | |
download | bcm5719-llvm-056ad058bbae36ae70fbbc6cee5744dccadfbe93.tar.gz bcm5719-llvm-056ad058bbae36ae70fbbc6cee5744dccadfbe93.zip |
DWARFDebugFrame: Move some code around. NFC.
Move the FrameEntry::dumpInstructions down in the file at some
place where it can see the declarations of FDE and CIE.
llvm-svn: 230549
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp index 64f844b6f62..aca560c4216 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp @@ -179,19 +179,6 @@ void FrameEntry::parseInstructions(DataExtractor Data, uint32_t *Offset, } } - -void FrameEntry::dumpInstructions(raw_ostream &OS) const { - // TODO: at the moment only instruction names are dumped. Expand this to - // dump operands as well. - for (const auto &Instr : Instructions) { - uint8_t Opcode = Instr.Opcode; - if (Opcode & DWARF_CFI_PRIMARY_OPCODE_MASK) - Opcode &= DWARF_CFI_PRIMARY_OPCODE_MASK; - OS << " " << CallFrameString(Opcode) << ":\n"; - } -} - - namespace { /// \brief DWARF Common Information Entry (CIE) class CIE : public FrameEntry { @@ -285,6 +272,16 @@ private: }; } // end anonymous namespace +void FrameEntry::dumpInstructions(raw_ostream &OS) const { + // TODO: at the moment only instruction names are dumped. Expand this to + // dump operands as well. + for (const auto &Instr : Instructions) { + uint8_t Opcode = Instr.Opcode; + if (Opcode & DWARF_CFI_PRIMARY_OPCODE_MASK) + Opcode &= DWARF_CFI_PRIMARY_OPCODE_MASK; + OS << " " << CallFrameString(Opcode) << ":\n"; + } +} DWARFDebugFrame::DWARFDebugFrame() { } |