LLVM  4.0.0
PDBSymbolUnknown.h
Go to the documentation of this file.
1 //===- PDBSymbolUnknown.h - unknown symbol type -----------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLUNKNOWN_H
11 #define LLVM_DEBUGINFO_PDB_PDBSYMBOLUNKNOWN_H
12 
13 #include "PDBSymbol.h"
14 
15 namespace llvm {
16 
17 class raw_ostream;
18 namespace pdb {
19 
20 class PDBSymbolUnknown : public PDBSymbol {
21 public:
22  PDBSymbolUnknown(const IPDBSession &PDBSession,
23  std::unique_ptr<IPDBRawSymbol> UnknownSymbol);
24 
25  void dump(PDBSymDumper &Dumper) const override;
26 
27  static bool classof(const PDBSymbol *S) {
28  return (S->getSymTag() == PDB_SymType::None ||
29  S->getSymTag() >= PDB_SymType::Max);
30  }
31 };
32 
33 } // namespace llvm
34 }
35 
36 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLUNKNOWN_H
IPDBSession defines an interface used to provide a context for querying debug information from a debu...
Definition: IPDBSession.h:25
PDBSymbolUnknown(const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > UnknownSymbol)
static bool classof(const PDBSymbol *S)
PDB_SymType getSymTag() const
Definition: PDBSymbol.cpp:112
PDBSymbol defines the base of the inheritance hierarchy for concrete symbol types (e...
Definition: PDBSymbol.h:43
void dump(PDBSymDumper &Dumper) const override
Dumps the contents of a symbol a raw_ostream.