mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-11 10:25:41 +00:00
This patch creates a platform-independent interface to a PDB reader. There is currently no implementation of this interface, which will be provided in future patches. This defines the basic object model which any implementation must conform to. Reviewed by: David Blaikie Differential Revision: http://reviews.llvm.org/D7356 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228428 91177308-0d34-0410-b5e6-96231b3b80d8
34 lines
939 B
C++
34 lines
939 B
C++
//===- IPDBEnumChildren.h - base interface for child enumerator -*- 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_IPDBENUMCHILDREN_H
|
|
#define LLVM_DEBUGINFO_PDB_IPDBENUMCHILDREN_H
|
|
|
|
#include <memory>
|
|
#include "PDBTypes.h"
|
|
|
|
namespace llvm {
|
|
|
|
template <typename ChildType> class IPDBEnumChildren {
|
|
public:
|
|
typedef std::unique_ptr<ChildType> ChildTypePtr;
|
|
typedef std::unique_ptr<IPDBEnumChildren<ChildType>> MyTypePtr;
|
|
|
|
virtual ~IPDBEnumChildren() {}
|
|
|
|
virtual uint32_t getChildCount() const = 0;
|
|
virtual ChildTypePtr getChildAtIndex(uint32_t Index) const = 0;
|
|
virtual ChildTypePtr getNext() = 0;
|
|
virtual void reset() = 0;
|
|
virtual MyTypePtr clone() const = 0;
|
|
};
|
|
}
|
|
|
|
#endif
|