Path: blob/main/contrib/llvm-project/llvm/lib/DebugInfo/PDB/PDBSymbolExe.cpp
35269 views
//===- PDBSymbolExe.cpp - ---------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "llvm/DebugInfo/PDB/PDBSymbolExe.h"910#include "llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h"11#include "llvm/DebugInfo/PDB/PDBSymDumper.h"12#include "llvm/DebugInfo/PDB/PDBSymbolTypePointer.h"13#include "llvm/DebugInfo/PDB/PDBTypes.h"1415using namespace llvm;16using namespace llvm::pdb;1718void PDBSymbolExe::dump(PDBSymDumper &Dumper) const { Dumper.dump(*this); }1920uint32_t PDBSymbolExe::getPointerByteSize() const {21auto Pointer = findOneChild<PDBSymbolTypePointer>();22if (Pointer)23return Pointer->getLength();2425if (getMachineType() == PDB_Machine::x86)26return 4;27return 8;28}293031