Skip to content

Commit 7c8a4a0

Browse files
authored
Merge pull request #9753 from swiftlang/cherrypick-swift/release/6.1-7df9da7d780f-2ccbea1d7383-5886454669c3
[🍒 swift/release/6.1] [dsymutil] Provide an option to ignore object timestamp mismatches (llvm#113238)
2 parents 3efb04a + 84cb80c commit 7c8a4a0

36 files changed

+120
-106
lines changed

llvm/docs/CommandGuide/dsymutil.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ OPTIONS
8383
used in conjunction with ``--update`` option, this option will cause redundant
8484
accelerator tables to be removed.
8585

86+
.. option:: --no-object-timestamp
87+
88+
Don't check timestamp for object files.
89+
8690
.. option:: --no-odr
8791

8892
Do not use ODR (One Definition Rule) for uniquing C++ types.

llvm/include/llvm/Analysis/TargetTransformInfoImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ class TargetTransformInfoImplCRTPBase : public TargetTransformInfoImplBase {
13891389

13901390
bool IsUnary = isa<UndefValue>(Operands[1]);
13911391
NumSubElts = VecSrcTy->getElementCount().getKnownMinValue();
1392-
SmallVector<int, 16> AdjustMask(Mask.begin(), Mask.end());
1392+
SmallVector<int, 16> AdjustMask(Mask);
13931393

13941394
// Widening shuffle - widening the source(s) to the new length
13951395
// (treated as free - see above), and then perform the adjusted

llvm/include/llvm/DebugInfo/CodeView/TypeRecord.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,8 +669,7 @@ class BuildInfoRecord : public TypeRecord {
669669
BuildInfoRecord() = default;
670670
explicit BuildInfoRecord(TypeRecordKind Kind) : TypeRecord(Kind) {}
671671
BuildInfoRecord(ArrayRef<TypeIndex> ArgIndices)
672-
: TypeRecord(TypeRecordKind::BuildInfo),
673-
ArgIndices(ArgIndices.begin(), ArgIndices.end()) {}
672+
: TypeRecord(TypeRecordKind::BuildInfo), ArgIndices(ArgIndices) {}
674673

675674
ArrayRef<TypeIndex> getArgs() const { return ArgIndices; }
676675

llvm/include/llvm/FuzzMutate/RandomIRBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct RandomIRBuilder {
4343
uint64_t MinFunctionNum = 1;
4444

4545
RandomIRBuilder(int Seed, ArrayRef<Type *> AllowedTypes)
46-
: Rand(Seed), KnownTypes(AllowedTypes.begin(), AllowedTypes.end()) {}
46+
: Rand(Seed), KnownTypes(AllowedTypes) {}
4747

4848
// TODO: Try to make this a bit less of a random mishmash of functions.
4949

llvm/include/llvm/IR/DebugInfoMetadata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3990,7 +3990,7 @@ class DIArgList : public Metadata, ReplaceableMetadataImpl {
39903990

39913991
DIArgList(LLVMContext &Context, ArrayRef<ValueAsMetadata *> Args)
39923992
: Metadata(DIArgListKind, Uniqued), ReplaceableMetadataImpl(Context),
3993-
Args(Args.begin(), Args.end()) {
3993+
Args(Args) {
39943994
track();
39953995
}
39963996
~DIArgList() { untrack(); }

llvm/include/llvm/IR/Metadata.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,8 +1489,7 @@ class MDTuple : public MDNode {
14891489

14901490
TempMDTuple cloneImpl() const {
14911491
ArrayRef<MDOperand> Operands = operands();
1492-
return getTemporary(getContext(), SmallVector<Metadata *, 4>(
1493-
Operands.begin(), Operands.end()));
1492+
return getTemporary(getContext(), SmallVector<Metadata *, 4>(Operands));
14941493
}
14951494

14961495
public:

llvm/include/llvm/MC/MCFragment.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,7 @@ class MCCVDefRangeFragment : public MCEncodedFragmentWithFixups<32, 4> {
543543
ArrayRef<std::pair<const MCSymbol *, const MCSymbol *>> Ranges,
544544
StringRef FixedSizePortion)
545545
: MCEncodedFragmentWithFixups<32, 4>(FT_CVDefRange, false),
546-
Ranges(Ranges.begin(), Ranges.end()),
547-
FixedSizePortion(FixedSizePortion) {}
546+
Ranges(Ranges), FixedSizePortion(FixedSizePortion) {}
548547

549548
ArrayRef<std::pair<const MCSymbol *, const MCSymbol *>> getRanges() const {
550549
return Ranges;

llvm/include/llvm/ProfileData/MemProf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ struct IndexedAllocationInfo {
352352
IndexedAllocationInfo(ArrayRef<FrameId> CS, CallStackId CSId,
353353
const MemInfoBlock &MB,
354354
const MemProfSchema &Schema = getFullSchema())
355-
: CallStack(CS.begin(), CS.end()), CSId(CSId), Info(MB, Schema) {}
355+
: CallStack(CS), CSId(CSId), Info(MB, Schema) {}
356356

357357
// Returns the size in bytes when this allocation info struct is serialized.
358358
size_t serializedSize(const MemProfSchema &Schema,

llvm/include/llvm/Support/GenericDomTree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ class DominatorTreeBase {
578578
// The PostViewCFG is created with updates reversed (equivalent to changes
579579
// made to the CFG), so the PreViewCFG needs all the updates reverse
580580
// applied.
581-
SmallVector<UpdateType> AllUpdates(Updates.begin(), Updates.end());
581+
SmallVector<UpdateType> AllUpdates(Updates);
582582
append_range(AllUpdates, PostViewUpdates);
583583
GraphDiff<NodePtr, IsPostDom> PreViewCFG(AllUpdates,
584584
/*ReverseApplyUpdates=*/true);

llvm/include/llvm/Support/ScopedPrinter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class ScopedPrinter {
161161
void printFlags(StringRef Label, T Value, ArrayRef<EnumEntry<TFlag>> Flags,
162162
TFlag EnumMask1 = {}, TFlag EnumMask2 = {},
163163
TFlag EnumMask3 = {}, ArrayRef<FlagEntry> ExtraFlags = {}) {
164-
SmallVector<FlagEntry, 10> SetFlags(ExtraFlags.begin(), ExtraFlags.end());
164+
SmallVector<FlagEntry, 10> SetFlags(ExtraFlags);
165165

166166
for (const auto &Flag : Flags) {
167167
if (Flag.Value == 0)

0 commit comments

Comments
 (0)