76 lines · c
1// RUN: %clang_cc1 %s -emit-llvm -debug-info-kind=limited -o /dev/null2 3typedef long unsigned int size_t;4typedef unsigned short int uint16_t;5typedef unsigned int uint32_t;6typedef unsigned long int uint64_t;7typedef uint16_t Elf64_Half;8typedef uint32_t Elf64_Word;9typedef uint64_t Elf64_Xword;10typedef uint64_t Elf64_Addr;11typedef uint64_t Elf64_Off;12typedef struct13{14 Elf64_Word p_type;15 Elf64_Off p_offset;16 Elf64_Addr p_vaddr;17 Elf64_Xword p_align;18}19Elf64_Phdr;20struct dl_phdr_info21{22 const char *dlpi_name;23 const Elf64_Phdr *dlpi_phdr;24 Elf64_Half dlpi_phnum;25 unsigned long long int dlpi_adds;26};27typedef unsigned _Unwind_Ptr;28struct object29{30 union31 {32 const struct dwarf_fde *single;33 struct dwarf_fde **array;34 struct fde_vector *sort;35 }36 u;37 union38 {39 struct40 {41 }42 b;43 }44 s;45 struct object *next;46};47typedef int sword;48typedef unsigned int uword;49struct dwarf_fde50{51 uword length;52 sword CIE_delta;53 unsigned char pc_begin[];54};55typedef struct dwarf_fde fde;56struct unw_eh_callback_data57{58 const fde *ret;59 struct frame_hdr_cache_element *link;60}61frame_hdr_cache[8];62 63_Unwind_Ptr64base_from_cb_data (struct unw_eh_callback_data *data)65{66 return 0;67}68 69void70_Unwind_IteratePhdrCallback (struct dl_phdr_info *info, size_t size, void *ptr)71{72 const unsigned char *p;73 const struct unw_eh_frame_hdr *hdr;74 struct object ob;75}76