diff options
author | Eric Christopher <echristo@gmail.com> | 2013-09-05 18:20:16 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-09-05 18:20:16 +0000 |
commit | 577056f89c840537b059ea4cef8d2ae18513cda0 (patch) | |
tree | ef06eb380ee981c0f0ff173e6c255d68ac383d27 /include | |
parent | c65d2010084fe471e1e8b86d0cec1d051e5a524f (diff) | |
download | external_llvm-577056f89c840537b059ea4cef8d2ae18513cda0.zip external_llvm-577056f89c840537b059ea4cef8d2ae18513cda0.tar.gz external_llvm-577056f89c840537b059ea4cef8d2ae18513cda0.tar.bz2 |
Move accelerator table defines and constants to Dwarf.h since
we're proposing it for DWARF5.
No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/Dwarf.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/llvm/Support/Dwarf.h b/include/llvm/Support/Dwarf.h index 5a86dee..91aef13 100644 --- a/include/llvm/Support/Dwarf.h +++ b/include/llvm/Support/Dwarf.h @@ -763,6 +763,32 @@ const char *MacinfoString(unsigned Encoding); /// CallFrameString - Return the string for the specified call frame instruction /// encodings. const char *CallFrameString(unsigned Encoding); + +// Constants for the DWARF5 Accelerator Table Proposal +enum AcceleratorTable { + // Data layout descriptors. + DW_ATOM_null = 0u, // Marker as the end of a list of atoms. + DW_ATOM_die_offset = 1u, // DIE offset in the debug_info section. + DW_ATOM_cu_offset = 2u, // Offset of the compile unit header that contains the + // item in question. + DW_ATOM_die_tag = 3u, // A tag entry. + DW_ATOM_type_flags = 4u, // Set of flags for a type. + + // DW_ATOM_type_flags values. + + // Always set for C++, only set for ObjC if this is the @implementation for a + // class. + DW_FLAG_type_implementation = 2u, + + // Hash functions. + + // Daniel J. Bernstein hash. + DW_hash_function_djb = 0u +}; + +/// AtomTypeString - Return the string for the specified Atom type. +const char *AtomTypeString(unsigned Atom); + } // End of namespace dwarf } // End of namespace llvm |