mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 22:23:10 +00:00
Dumping a symbol often requires access to data that isn't inside the symbol hierarchy, but which is only accessible through the top-level session. This patch is a pure interface change to give symbols a reference to the session. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228542 91177308-0d34-0410-b5e6-96231b3b80d8
36 lines
955 B
C++
36 lines
955 B
C++
//===- PDBSymbolUnknown.h - unknown symbol type -----------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLUNKNOWN_H
|
|
#define LLVM_DEBUGINFO_PDB_PDBSYMBOLUNKNOWN_H
|
|
|
|
#include "PDBSymbol.h"
|
|
#include "PDBTypes.h"
|
|
|
|
namespace llvm {
|
|
|
|
class raw_ostream;
|
|
|
|
class PDBSymbolUnknown : public PDBSymbol {
|
|
public:
|
|
PDBSymbolUnknown(IPDBSession &PDBSession,
|
|
std::unique_ptr<IPDBRawSymbol> UnknownSymbol);
|
|
|
|
void dump(llvm::raw_ostream &OS) const override;
|
|
|
|
static bool classof(const PDBSymbol *S) {
|
|
return (S->getSymTag() == PDB_SymType::None ||
|
|
S->getSymTag() >= PDB_SymType::Max);
|
|
}
|
|
};
|
|
|
|
} // namespace llvm
|
|
|
|
#endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLUNKNOWN_H
|