llvm-capstone/lld/ELF/GdbIndex.h
George Rimar 58fa5243cc [ELF] - Partial support of --gdb-index command line option (Part 1).
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
2016-10-20 09:19:48 +00:00

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