diff options
author | Eli Bendersky <eliben@google.com> | 2013-02-21 22:53:19 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2013-02-21 22:53:19 +0000 |
commit | 7bf3d6a0438485df61c438f26cfbaef2f8d8a3c4 (patch) | |
tree | 624aeeb01fc813834ac4db1984520d63c969261a /lib/Support/Dwarf.cpp | |
parent | 0711d46a72580a943d60a770776a22aeb494e66c (diff) |
Previously, parsing capability of the .debug_frame section was added
to lib/DebugInfo, with dumping in llvm-dwarfdump. This patch adds
initial ability to parse and dump CFA instructions contained in
entries.
To keep it manageable, the patch omits some more advanced capabilities
(accounted in TODOs):
* Parsing of instructions with BLOCK arguments (expression lists)
* Dumping of actual instruction arguments (currently only names are
dumped). This is quite tricky since the dumper has to effectively
"interpret" the instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175820 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Dwarf.cpp')
-rw-r--r-- | lib/Support/Dwarf.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Support/Dwarf.cpp b/lib/Support/Dwarf.cpp index 615efb8b0e..0f91c11ac2 100644 --- a/lib/Support/Dwarf.cpp +++ b/lib/Support/Dwarf.cpp @@ -688,6 +688,7 @@ const char *llvm::dwarf::MacinfoString(unsigned Encoding) { /// encodings. const char *llvm::dwarf::CallFrameString(unsigned Encoding) { switch (Encoding) { + case DW_CFA_nop: return "DW_CFA_nop"; case DW_CFA_advance_loc: return "DW_CFA_advance_loc"; case DW_CFA_offset: return "DW_CFA_offset"; case DW_CFA_restore: return "DW_CFA_restore"; |