blob: cf471450d9891eec21643084b03ae2b8271abf18 [file] [log] [blame]
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01001//===- PDBSymbolBlock.h - Accessors for querying PDB blocks -------------*-===//
2//
Andrew Walbran16937d02019-10-22 13:54:20 +01003// 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
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01006//
7//===----------------------------------------------------------------------===//
8#ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLBLOCK_H
9#define LLVM_DEBUGINFO_PDB_PDBSYMBOLBLOCK_H
10
11#include "PDBSymbol.h"
12#include "PDBTypes.h"
13
14namespace llvm {
15
16class raw_ostream;
17
18namespace pdb {
19
20class PDBSymbolBlock : public PDBSymbol {
Andrew Scull5e1ddfa2018-08-14 10:06:54 +010021 DECLARE_PDB_SYMBOL_CONCRETE_TYPE(PDB_SymType::Block)
Andrew Scull0372a572018-11-16 15:47:06 +000022public:
Andrew Scull5e1ddfa2018-08-14 10:06:54 +010023 void dump(PDBSymDumper &Dumper) const override;
24
25 FORWARD_SYMBOL_METHOD(getAddressOffset)
26 FORWARD_SYMBOL_METHOD(getAddressSection)
27 FORWARD_SYMBOL_METHOD(getLength)
28 FORWARD_SYMBOL_ID_METHOD(getLexicalParent)
29 FORWARD_SYMBOL_METHOD(getLocationType)
30 FORWARD_SYMBOL_METHOD(getName)
31 FORWARD_SYMBOL_METHOD(getRelativeVirtualAddress)
32 FORWARD_SYMBOL_METHOD(getVirtualAddress)
33};
34}
35}
36
37#endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLBLOCK_H