mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-30 01:46:05 +00:00

To resolve symbol context at a particular address, we need to determine the compiland for the address. We are able to determine the parent compiland of PDBSymbolFunc, PDBSymbolTypeUDT, PDBSymbolTypeEnum symbols indirectly through line information. However no such information is availabile for PDBSymbolData, i.e. variables. The Section Contribution table from PDBs has information about each compiland's contribution to sections by address. For example, a piece of a contribution looks like, VA RelativeVA Sect No. Offset Length Compiland 14000087B0 000087B0 0001 000077B0 000000BB exe_main.obj So given an address, it's possible to determine its compiland with this information. llvm-svn: 328178
38 lines
1.3 KiB
C++
38 lines
1.3 KiB
C++
//===- PDBInterfaceAnchors.h - defines class anchor funcions ----*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
// Class anchors are necessary per the LLVM Coding style guide, to ensure that
|
|
// the vtable is only generated in this object file, and not in every object
|
|
// file that incldues the corresponding header.
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/DebugInfo/PDB/IPDBDataStream.h"
|
|
#include "llvm/DebugInfo/PDB/IPDBInjectedSource.h"
|
|
#include "llvm/DebugInfo/PDB/IPDBLineNumber.h"
|
|
#include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
|
|
#include "llvm/DebugInfo/PDB/IPDBSectionContrib.h"
|
|
#include "llvm/DebugInfo/PDB/IPDBSession.h"
|
|
#include "llvm/DebugInfo/PDB/IPDBTable.h"
|
|
|
|
using namespace llvm;
|
|
using namespace llvm::pdb;
|
|
|
|
IPDBSession::~IPDBSession() = default;
|
|
|
|
IPDBDataStream::~IPDBDataStream() = default;
|
|
|
|
IPDBRawSymbol::~IPDBRawSymbol() = default;
|
|
|
|
IPDBLineNumber::~IPDBLineNumber() = default;
|
|
|
|
IPDBTable::~IPDBTable() = default;
|
|
|
|
IPDBInjectedSource::~IPDBInjectedSource() = default;
|
|
|
|
IPDBSectionContrib::~IPDBSectionContrib() = default;
|