@@ -213,11 +213,13 @@ static void updateSupportedARMFeatures(Ctx &ctx,
213
213
}
214
214
215
215
// Sanitize pauth values.
216
- // Ensure that pauthSubSection is either std::nullopt or contains exactly two build attributes: ID and Scheme.
216
+ // Ensure that pauthSubSection is either std::nullopt or contains exactly two
217
+ // build attributes: ID and Scheme.
217
218
// - Content[0]: ID, Content[1]: Scheme.
218
219
// - Remove build attributes with unknown tags.
219
220
// - Set pauthSubSection to std::nullopt if any required attributes are missing.
220
- // - Sort the content vector so that ID is at Content[0] and Scheme at Content[1].
221
+ // - Sort the content vector so that ID is at Content[0] and Scheme at
222
+ // Content[1].
221
223
static void sanitizePauthSubSection (
222
224
Ctx &ctx, std::optional<llvm::BuildAttributeSubSection> &pauthSubSection,
223
225
InputSection isec) {
@@ -265,11 +267,13 @@ static void sanitizePauthSubSection(
265
267
}
266
268
267
269
// Sanitize feature bits.
268
- // Ensure that fAndBSubSection always contains exactly three build attributes: BTI, PAC, and GCS.
270
+ // Ensure that fAndBSubSection always contains exactly three build attributes:
271
+ // BTI, PAC, and GCS.
269
272
// - Content[0]: BTI, Content[1]: PAC, Content[2]: GCS.
270
273
// - Remove build attributes with unknown tags.
271
274
// - If any attribute is missing, add it with its value set to `0`.
272
- // - Sort the content vector so that Content[0] is BTI, Content[1] is PAC, and Content[2] is GCS.
275
+ // - Sort the content vector so that Content[0] is BTI, Content[1] is PAC, and
276
+ // Content[2] is GCS.
273
277
static void sanitizeFAndBSubSection (
274
278
std::optional<llvm::BuildAttributeSubSection> &fAndBSubSection ) {
275
279
/*
@@ -314,7 +318,7 @@ static void sanitizeFAndBSubSection(
314
318
static std::array<std::optional<llvm::BuildAttributeSubSection>, 2 >
315
319
extractBuildAttributesSubsection (
316
320
Ctx &ctx,
317
- const SmallVector <llvm::BuildAttributeSubSection, 8 >
321
+ const SmallVectorImpl <llvm::BuildAttributeSubSection>
318
322
&buildAttributesSubsections,
319
323
InputSection isec) {
320
324
0 commit comments