mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-12 19:01:55 +00:00
58fa5243cc
In this patch partial gdb_index section is created. For costructing the .gdb_index section 6 steps should be performed (details are in SplitDebugInfo.cpp file header), this patch do first 3: Creates proper section header. Fills list of compilation units. Types CU list area is not supposed to be supported, so it is ignored and therefore can be treated as implemented either. Differential revision: https://reviews.llvm.org/D24706 llvm-svn: 284708
29 lines
685 B
C++
29 lines
685 B
C++
//===- GdbIndex.h --------------------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Linker
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===-------------------------------------------------------------------===//
|
|
|
|
#ifndef LLD_ELF_GDB_INDEX_H
|
|
#define LLD_ELF_GDB_INDEX_H
|
|
|
|
#include "InputFiles.h"
|
|
#include "llvm/Object/ELF.h"
|
|
|
|
namespace lld {
|
|
namespace elf {
|
|
|
|
template <class ELFT> class InputSection;
|
|
|
|
template <class ELFT>
|
|
std::vector<std::pair<typename ELFT::uint, typename ELFT::uint>>
|
|
readCuList(InputSection<ELFT> *Sec);
|
|
|
|
} // namespace elf
|
|
} // namespace lld
|
|
|
|
#endif
|