• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
classof(const PDBSymbol * S)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
37