1 //===- PDBSymbolExe.cpp - ---------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #include "llvm/DebugInfo/PDB/PDBSymbolExe.h"
11 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
12 #include "llvm/DebugInfo/PDB/PDBSymbolTypePointer.h"
17 using namespace llvm::pdb
;
19 void PDBSymbolExe::dump(PDBSymDumper
&Dumper
) const { Dumper
.dump(*this); }
21 uint32_t PDBSymbolExe::getPointerByteSize() const {
22 auto Pointer
= findOneChild
<PDBSymbolTypePointer
>();
24 return Pointer
->getLength();
26 if (getMachineType() == PDB_Machine::x86
)