11#ifndef LLVM_DWP_DWP_H
22#define LLVM_DWP_DWP_H
33
4- #include " llvm/Support/Compiler.h"
54#include " DWPStringPool.h"
65#include " llvm/ADT/ArrayRef.h"
76#include " llvm/ADT/MapVector.h"
1110#include " llvm/MC/MCSection.h"
1211#include " llvm/MC/MCStreamer.h"
1312#include " llvm/Object/ObjectFile.h"
13+ #include " llvm/Support/Compiler.h"
1414#include " llvm/Support/Error.h"
1515#include < deque>
1616#include < vector>
@@ -68,9 +68,10 @@ struct CompileUnitIdentifiers {
6868};
6969
7070LLVM_ABI Error write (MCStreamer &Out, ArrayRef<std::string> Inputs,
71- OnCuIndexOverflow OverflowOptValue);
71+ OnCuIndexOverflow OverflowOptValue);
7272
73- LLVM_ABI unsigned getContributionIndex (DWARFSectionKind Kind, uint32_t IndexVersion);
73+ LLVM_ABI unsigned getContributionIndex (DWARFSectionKind Kind,
74+ uint32_t IndexVersion);
7475
7576LLVM_ABI Error handleSection (
7677 const StringMap<std::pair<MCSection *, DWARFSectionKind>> &KnownSections,
@@ -86,20 +87,24 @@ LLVM_ABI Error handleSection(
8687 StringRef &CurCUIndexSection, StringRef &CurTUIndexSection,
8788 std::vector<std::pair<DWARFSectionKind, uint32_t>> &SectionLength);
8889
89- LLVM_ABI Expected<InfoSectionUnitHeader> parseInfoSectionUnitHeader (StringRef Info);
90+ LLVM_ABI Expected<InfoSectionUnitHeader>
91+ parseInfoSectionUnitHeader (StringRef Info);
9092
9193LLVM_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);
103108
104109} // namespace llvm
105110#endif // LLVM_DWP_DWP_H
0 commit comments