LLVM  8.0.1
DebugCrossImpSubsection.h
Go to the documentation of this file.
1 //===- DebugCrossExSubsection.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_DEBUGCROSSIMPSUBSECTION_H
11 #define LLVM_DEBUGINFO_CODEVIEW_DEBUGCROSSIMPSUBSECTION_H
12 
13 #include "llvm/ADT/StringMap.h"
14 #include "llvm/ADT/StringRef.h"
20 #include "llvm/Support/Endian.h"
21 #include "llvm/Support/Error.h"
22 #include <cstdint>
23 #include <vector>
24 
25 namespace llvm {
26 
27 namespace codeview {
28 
30  const CrossModuleImport *Header = nullptr;
32 };
33 
34 } // end namespace codeview
35 
36 template <> struct VarStreamArrayExtractor<codeview::CrossModuleImportItem> {
37 public:
38  using ContextType = void;
39 
40  Error operator()(BinaryStreamRef Stream, uint32_t &Len,
42 };
43 
44 namespace codeview {
45 
46 class DebugStringTableSubsection;
47 
51 
52 public:
55 
56  static bool classof(const DebugSubsectionRef *S) {
58  }
59 
62 
63  Iterator begin() const { return References.begin(); }
64  Iterator end() const { return References.end(); }
65 
66 private:
67  ReferenceArray References;
68 };
69 
71 public:
75  Strings(Strings) {}
76 
77  static bool classof(const DebugSubsection *S) {
79  }
80 
81  void addImport(StringRef Module, uint32_t ImportId);
82 
83  uint32_t calculateSerializedSize() const override;
84  Error commit(BinaryStreamWriter &Writer) const override;
85 
86 private:
89 };
90 
91 } // end namespace codeview
92 
93 } // end namespace llvm
94 
95 #endif // LLVM_DEBUGINFO_CODEVIEW_DEBUGCROSSIMPSUBSECTION_H
This class represents lattice values for constants.
Definition: AllocatorList.h:24
A Module instance is used to store all the information related to an LLVM module. ...
Definition: Module.h:65
VarStreamArrayExtractor is intended to be specialized to provide customized extraction logic...
DebugCrossModuleImportsSubsection(DebugStringTableSubsection &Strings)
static bool classof(const DebugSubsectionRef *S)
Provides write only access to a subclass of WritableBinaryStream.
Represents a read-write view of a CodeView string table.
FixedStreamArray< support::ulittle32_t > Imports
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.
VarStreamArray represents an array of variable length records backed by a stream. ...
DebugSubsectionKind kind() const
StringMap - This is an unconventional map that is specialized for handling keys that are "strings"...
Definition: StringMap.h:220
static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, ArrayRef< StringRef > StandardNames)
Initialize the set of available library functions based on the specified target triple.
Lightweight error class with error context and mandatory checking.
Definition: Error.h:158
Provides read only access to a subclass of BinaryStream.
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49
DebugSubsectionKind kind() const