mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-29 13:29:28 +00:00
This patch implements a few of the optional suggestions from the initial patch comitting libpdb. In particular, it implements a virtual function out of line for each of the concrete classes. A few other minor cleanups exist as well, such as using override instead of virtual, etc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228516 91177308-0d34-0410-b5e6-96231b3b80d8
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
//===- PDBSymbolBlock.h - Accessors for querying PDB blocks -------------*-===//
|
|
//
|
|
// 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_PDBSYMBOLBLOCK_H
|
|
#define LLVM_DEBUGINFO_PDB_PDBSYMBOLBLOCK_H
|
|
|
|
#include <string>
|
|
|
|
#include "PDBSymbol.h"
|
|
#include "PDBTypes.h"
|
|
|
|
namespace llvm {
|
|
|
|
class raw_ostream;
|
|
|
|
class PDBSymbolBlock : public PDBSymbol {
|
|
public:
|
|
PDBSymbolBlock(std::unique_ptr<IPDBRawSymbol> BlockSymbol);
|
|
|
|
void dump(llvm::raw_ostream &OS) const override;
|
|
|
|
FORWARD_SYMBOL_METHOD(getAddressOffset)
|
|
FORWARD_SYMBOL_METHOD(getAddressSection)
|
|
FORWARD_SYMBOL_METHOD(getLength)
|
|
FORWARD_SYMBOL_METHOD(getLexicalParentId)
|
|
FORWARD_SYMBOL_METHOD(getLocationType)
|
|
FORWARD_SYMBOL_METHOD(getName)
|
|
FORWARD_SYMBOL_METHOD(getRelativeVirtualAddress)
|
|
FORWARD_SYMBOL_METHOD(getSymIndexId)
|
|
FORWARD_SYMBOL_METHOD(getVirtualAddress)
|
|
|
|
static bool classof(const PDBSymbol *S) {
|
|
return S->getSymTag() == PDB_SymType::Block;
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLBLOCK_H
|