LLVM
20.0.0git
lib
DebugInfo
PDB
PDBSymbolExe.cpp
Go to the documentation of this file.
1
//===- PDBSymbolExe.cpp - ---------------------------------------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#include "
llvm/DebugInfo/PDB/PDBSymbolExe.h
"
10
11
#include "
llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h
"
12
#include "
llvm/DebugInfo/PDB/PDBSymDumper.h
"
13
#include "
llvm/DebugInfo/PDB/PDBSymbolTypePointer.h
"
14
#include "
llvm/DebugInfo/PDB/PDBTypes.h
"
15
16
using namespace
llvm
;
17
using namespace
llvm::pdb
;
18
19
void
PDBSymbolExe::dump
(
PDBSymDumper
&Dumper)
const
{ Dumper.
dump
(*
this
); }
20
21
uint32_t
PDBSymbolExe::getPointerByteSize
()
const
{
22
auto
Pointer = findOneChild<PDBSymbolTypePointer>();
23
if
(Pointer)
24
return
Pointer->getLength();
25
26
if
(
getMachineType
() ==
PDB_Machine::x86
)
27
return
4;
28
return
8;
29
}
ConcreteSymbolEnumerator.h
PDBSymDumper.h
PDBSymbolExe.h
PDBSymbolTypePointer.h
PDBTypes.h
llvm::pdb::PDBSymDumper
Definition:
PDBSymDumper.h:19
llvm::pdb::PDBSymDumper::dump
virtual void dump(const PDBSymbolAnnotation &Symbol)
Definition:
PDBSymDumper.cpp:24
llvm::pdb::PDBSymbolExe::getPointerByteSize
uint32_t getPointerByteSize() const
Definition:
PDBSymbolExe.cpp:21
llvm::pdb::PDBSymbolExe::dump
void dump(PDBSymDumper &Dumper) const override
Dumps the contents of a symbol a raw_ostream.
Definition:
PDBSymbolExe.cpp:19
uint32_t
llvm::pdb
Definition:
LVCodeViewReader.h:44
llvm::pdb::PDB_Machine::x86
@ x86
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::getMachineType
COFF::MachineTypes getMachineType(StringRef S)
Definition:
WindowsMachineFlag.cpp:23
Generated on Sat Dec 21 2024 01:19:25 for LLVM by
1.9.6