diff options
author | Eli Bendersky <eliben@google.com> | 2013-02-05 23:30:58 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2013-02-05 23:30:58 +0000 |
commit | 60bdc5b16e2fc17be184b515a00c2e2a2eb40b89 (patch) | |
tree | be55ca14395e80a1b7d7440cdb177e27e8e5c799 /include | |
parent | 5e215f9bfd9e113d2b14e1d2cd7395fbeb3c0561 (diff) | |
download | llvm-60bdc5b16e2fc17be184b515a00c2e2a2eb40b89.tar.gz llvm-60bdc5b16e2fc17be184b515a00c2e2a2eb40b89.tar.bz2 llvm-60bdc5b16e2fc17be184b515a00c2e2a2eb40b89.tar.xz |
Initial support for DWARF CFI parsing and dumping in LLVM
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/DebugInfo/DIContext.h | 1 | ||||
-rw-r--r-- | include/llvm/Support/Dwarf.h | 13 |
2 files changed, 12 insertions, 2 deletions
diff --git a/include/llvm/DebugInfo/DIContext.h b/include/llvm/DebugInfo/DIContext.h index a2c3f03ee8..679b490caf 100644 --- a/include/llvm/DebugInfo/DIContext.h +++ b/include/llvm/DebugInfo/DIContext.h @@ -101,6 +101,7 @@ enum DIDumpType { DIDT_Abbrev, DIDT_AbbrevDwo, DIDT_Aranges, + DIDT_Frames, DIDT_Info, DIDT_InfoDwo, DIDT_Line, diff --git a/include/llvm/Support/Dwarf.h b/include/llvm/Support/Dwarf.h index c703da5762..b52914f938 100644 --- a/include/llvm/Support/Dwarf.h +++ b/include/llvm/Support/Dwarf.h @@ -16,6 +16,9 @@ #ifndef LLVM_SUPPORT_DWARF_H #define LLVM_SUPPORT_DWARF_H +#include "llvm/Support/DataTypes.h" + + namespace llvm { //===----------------------------------------------------------------------===// @@ -53,10 +56,16 @@ enum llvm_dwarf_constants { DW_TAG_user_base = 0x1000, // Recommended base for user tags. - DW_CIE_VERSION = 1, // Common frame information version. - DW_CIE_ID = 0xffffffff // Common frame information mark. + DW_CIE_VERSION = 1 // Common frame information version. }; + +// Special ID values that distinguish a CIE from a FDE in DWARF CFI. +// Not inside an enum because a 64-bit value is needed. +const uint32_t DW_CIE_ID = UINT32_MAX; +const uint64_t DW64_CIE_ID = UINT64_MAX; + + enum dwarf_constants { DWARF_VERSION = 2, |