LLVM  6.0.0svn
TypeCollection.h
Go to the documentation of this file.
1 //===- TypeCollection.h - A collection of CodeView type records -*- 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_CODEVIEW_TYPECOLLECTION_H
11 #define LLVM_DEBUGINFO_CODEVIEW_TYPECOLLECTION_H
12 
13 #include "llvm/ADT/StringRef.h"
14 
17 
18 namespace llvm {
19 namespace codeview {
21 public:
22  virtual ~TypeCollection() = default;
23 
24  bool empty() { return size() == 0; }
25 
26  virtual Optional<TypeIndex> getFirst() = 0;
27  virtual Optional<TypeIndex> getNext(TypeIndex Prev) = 0;
28 
29  virtual CVType getType(TypeIndex Index) = 0;
30  virtual StringRef getTypeName(TypeIndex Index) = 0;
31  virtual bool contains(TypeIndex Index) = 0;
32  virtual uint32_t size() = 0;
33  virtual uint32_t capacity() = 0;
34 };
35 }
36 }
37 
38 #endif
virtual Optional< TypeIndex > getNext(TypeIndex Prev)=0
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
virtual CVType getType(TypeIndex Index)=0
virtual uint32_t size()=0
virtual Optional< TypeIndex > getFirst()=0
A 32-bit type reference.
Definition: TypeIndex.h:96
virtual bool contains(TypeIndex Index)=0
virtual uint32_t capacity()=0
virtual StringRef getTypeName(TypeIndex Index)=0
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49
virtual ~TypeCollection()=default