1
1
#ifndef LLVM_DWP_DWP_H
2
2
#define LLVM_DWP_DWP_H
3
3
4
- #include " llvm/Support/Compiler.h"
5
4
#include " DWPStringPool.h"
6
5
#include " llvm/ADT/ArrayRef.h"
7
6
#include " llvm/ADT/MapVector.h"
11
10
#include " llvm/MC/MCSection.h"
12
11
#include " llvm/MC/MCStreamer.h"
13
12
#include " llvm/Object/ObjectFile.h"
13
+ #include " llvm/Support/Compiler.h"
14
14
#include " llvm/Support/Error.h"
15
15
#include < deque>
16
16
#include < vector>
@@ -68,9 +68,10 @@ struct CompileUnitIdentifiers {
68
68
};
69
69
70
70
LLVM_ABI Error write (MCStreamer &Out, ArrayRef<std::string> Inputs,
71
- OnCuIndexOverflow OverflowOptValue);
71
+ OnCuIndexOverflow OverflowOptValue);
72
72
73
- LLVM_ABI unsigned getContributionIndex (DWARFSectionKind Kind, uint32_t IndexVersion);
73
+ LLVM_ABI unsigned getContributionIndex (DWARFSectionKind Kind,
74
+ uint32_t IndexVersion);
74
75
75
76
LLVM_ABI Error handleSection (
76
77
const StringMap<std::pair<MCSection *, DWARFSectionKind>> &KnownSections,
@@ -86,20 +87,24 @@ LLVM_ABI Error handleSection(
86
87
StringRef &CurCUIndexSection, StringRef &CurTUIndexSection,
87
88
std::vector<std::pair<DWARFSectionKind, uint32_t>> &SectionLength);
88
89
89
- LLVM_ABI Expected<InfoSectionUnitHeader> parseInfoSectionUnitHeader (StringRef Info);
90
+ LLVM_ABI Expected<InfoSectionUnitHeader>
91
+ parseInfoSectionUnitHeader (StringRef Info);
90
92
91
93
LLVM_ABI void writeStringsAndOffsets (MCStreamer &Out, DWPStringPool &Strings,
92
- MCSection *StrOffsetSection,
93
- StringRef CurStrSection,
94
- StringRef CurStrOffsetSection, uint16_t Version);
95
-
96
- LLVM_ABI Error buildDuplicateError (const std::pair<uint64_t , UnitIndexEntry> &PrevE,
97
- const CompileUnitIdentifiers &ID, StringRef DWPName);
98
-
99
- LLVM_ABI void writeIndex (MCStreamer &Out, MCSection *Section,
100
- ArrayRef<unsigned > ContributionOffsets,
101
- const MapVector<uint64_t , UnitIndexEntry> &IndexEntries,
102
- uint32_t IndexVersion);
94
+ MCSection *StrOffsetSection,
95
+ StringRef CurStrSection,
96
+ StringRef CurStrOffsetSection,
97
+ uint16_t Version);
98
+
99
+ LLVM_ABI Error
100
+ buildDuplicateError (const std::pair<uint64_t , UnitIndexEntry> &PrevE,
101
+ const CompileUnitIdentifiers &ID, StringRef DWPName);
102
+
103
+ LLVM_ABI void
104
+ writeIndex (MCStreamer &Out, MCSection *Section,
105
+ ArrayRef<unsigned > ContributionOffsets,
106
+ const MapVector<uint64_t , UnitIndexEntry> &IndexEntries,
107
+ uint32_t IndexVersion);
103
108
104
109
} // namespace llvm
105
110
#endif // LLVM_DWP_DWP_H
0 commit comments