diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:55:28 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:55:28 +0000 |
commit | e81d9d49145e432d917eea3a70d2ae74dcad1d89 (patch) | |
tree | 9ed5e1a91f242e2cb5911577356e487a55c01b78 /source/Plugins/SymbolFile/DWARF/DIERef.h | |
parent | 85d8ef8f1f0e0e063a8571944302be2d2026f823 (diff) |
Notes
Diffstat (limited to 'source/Plugins/SymbolFile/DWARF/DIERef.h')
-rw-r--r-- | source/Plugins/SymbolFile/DWARF/DIERef.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/source/Plugins/SymbolFile/DWARF/DIERef.h b/source/Plugins/SymbolFile/DWARF/DIERef.h new file mode 100644 index 0000000000000..a5484db6bd6c9 --- /dev/null +++ b/source/Plugins/SymbolFile/DWARF/DIERef.h @@ -0,0 +1,42 @@ +//===-- DIERef.h ------------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef SymbolFileDWARF_DIERef_h_ +#define SymbolFileDWARF_DIERef_h_ + +#include "lldb/Core/dwarf.h" +#include "lldb/lldb-defines.h" + +class DWARFFormValue; + +struct DIERef +{ + DIERef(); + + explicit + DIERef(dw_offset_t d); + + DIERef(dw_offset_t c, dw_offset_t d); + + explicit + DIERef(lldb::user_id_t uid); + + explicit + DIERef(const DWARFFormValue& form_value); + + lldb::user_id_t + GetUID() const; + + dw_offset_t cu_offset; + dw_offset_t die_offset; +}; + +typedef std::vector<DIERef> DIEArray; + +#endif // SymbolFileDWARF_DIERef_h_ |