LLVM  6.0.0svn
TypeTableCollection.h
Go to the documentation of this file.
1 //===- TypeTableCollection.h ---------------------------------- *- 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_TYPETABLECOLLECTION_H
11 #define LLVM_DEBUGINFO_CODEVIEW_TYPETABLECOLLECTION_H
12 
15 
16 #include <vector>
17 
18 namespace llvm {
19 namespace codeview {
20 
22 public:
24 
25  Optional<TypeIndex> getFirst() override;
26  Optional<TypeIndex> getNext(TypeIndex Prev) override;
27 
28  CVType getType(TypeIndex Index) override;
29  StringRef getTypeName(TypeIndex Index) override;
30  bool contains(TypeIndex Index) override;
31  uint32_t size() override;
32  uint32_t capacity() override;
33 
34 private:
35  BumpPtrAllocator Allocator;
36  StringSaver NameStorage;
37  std::vector<StringRef> Names;
39 };
40 }
41 }
42 
43 #endif
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
A 32-bit type reference.
Definition: TypeIndex.h:96
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Definition: APInt.h:33
bool contains(TypeIndex Index) override
TypeTableCollection(ArrayRef< ArrayRef< uint8_t >> Records)
Allocate memory in an ever growing pool, as if by bump-pointer.
Definition: Allocator.h:138
Optional< TypeIndex > getFirst() override
StringRef getTypeName(TypeIndex Index) override
Optional< TypeIndex > getNext(TypeIndex Prev) override
CVType getType(TypeIndex Index) override
Saves strings in the inheritor&#39;s stable storage and returns a StringRef with a stable character point...
Definition: StringSaver.h:21
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49