DIERef.h revision 293127
1//===-- DIERef.h ------------------------------------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10#ifndef SymbolFileDWARF_DIERef_h_ 11#define SymbolFileDWARF_DIERef_h_ 12 13#include "lldb/Core/dwarf.h" 14#include "lldb/lldb-defines.h" 15 16class DWARFFormValue; 17 18struct DIERef 19{ 20 DIERef(); 21 22 explicit 23 DIERef(dw_offset_t d); 24 25 DIERef(dw_offset_t c, dw_offset_t d); 26 27 explicit 28 DIERef(lldb::user_id_t uid); 29 30 explicit 31 DIERef(const DWARFFormValue& form_value); 32 33 lldb::user_id_t 34 GetUID() const; 35 36 dw_offset_t cu_offset; 37 dw_offset_t die_offset; 38}; 39 40typedef std::vector<DIERef> DIEArray; 41 42#endif // SymbolFileDWARF_DIERef_h_ 43