blob: 75a86411643a62c6a8686c2be383f29860add0e8 [file] [log] [blame]
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01001//===- PDBSymbolCustom.h - compiler-specific types --------------*- C++ -*-===//
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
9#ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLCUSTOM_H
10#define LLVM_DEBUGINFO_PDB_PDBSYMBOLCUSTOM_H
11
12#include "PDBSymbol.h"
13#include "PDBTypes.h"
14#include "llvm/ADT/SmallVector.h"
15
16namespace llvm {
17
18class raw_ostream;
19
20namespace pdb {
21/// PDBSymbolCustom represents symbols that are compiler-specific and do not
22/// fit anywhere else in the lexical hierarchy.
23/// https://msdn.microsoft.com/en-us/library/d88sf09h.aspx
24class PDBSymbolCustom : public PDBSymbol {
Andrew Scull5e1ddfa2018-08-14 10:06:54 +010025 DECLARE_PDB_SYMBOL_CONCRETE_TYPE(PDB_SymType::Custom)
Andrew Scull0372a572018-11-16 15:47:06 +000026public:
Andrew Scull5e1ddfa2018-08-14 10:06:54 +010027 void dump(PDBSymDumper &Dumper) const override;
28
29 void getDataBytes(llvm::SmallVector<uint8_t, 32> &bytes);
30};
31
32} // namespace llvm
33}
34
35#endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCUSTOM_H