Skip to content

Commit fefd793

Browse files
committed
[NFC] IRGen: Renamed method.
1 parent ae9d501 commit fefd793

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

lib/IRGen/Outlining.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ irgen::getTypeAndGenericSignatureForManglingOutlineFunction(SILType type) {
150150
env->getGenericSignature().getCanonicalSignature()};
151151
}
152152

153-
bool TypeInfo::withMetadataCollector(
153+
bool TypeInfo::withWitnessableMetadataCollector(
154154
IRGenFunction &IGF, SILType T, LayoutIsNeeded_t needsLayout,
155155
DeinitIsNeeded_t needsDeinit,
156156
llvm::function_ref<void(OutliningMetadataCollector &)> invocation) const {
@@ -177,11 +177,11 @@ bool TypeInfo::withMetadataCollector(
177177
void TypeInfo::callOutlinedCopy(IRGenFunction &IGF, Address dest, Address src,
178178
SILType T, IsInitialization_t isInit,
179179
IsTake_t isTake) const {
180-
if (withMetadataCollector(IGF, T, LayoutIsNeeded, DeinitIsNotNeeded,
181-
[&](auto collector) {
182-
collector.emitCallToOutlinedCopy(
183-
dest, src, T, *this, isInit, isTake);
184-
})) {
180+
if (withWitnessableMetadataCollector(
181+
IGF, T, LayoutIsNeeded, DeinitIsNotNeeded, [&](auto collector) {
182+
collector.emitCallToOutlinedCopy(dest, src, T, *this, isInit,
183+
isTake);
184+
})) {
185185
return;
186186
}
187187

@@ -376,7 +376,7 @@ void TypeInfo::callOutlinedDestroy(IRGenFunction &IGF,
376376
if (IGF.IGM.getTypeLowering(T).isTrivial())
377377
return;
378378

379-
if (withMetadataCollector(
379+
if (withWitnessableMetadataCollector(
380380
IGF, T, LayoutIsNeeded, DeinitIsNeeded, [&](auto collector) {
381381
collector.emitCallToOutlinedDestroy(addr, T, *this);
382382
})) {

lib/IRGen/Outlining.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212
//
13-
// This file defines interfaces for outlining value witnesses.
13+
// This file defines interfaces for outlined value witnesses.
1414
//
1515
//===----------------------------------------------------------------------===//
1616

lib/IRGen/TypeInfo.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -570,12 +570,13 @@ class TypeInfo {
570570
virtual void verify(IRGenTypeVerifierFunction &IGF,
571571
llvm::Value *typeMetadata,
572572
SILType T) const;
573-
/// Perform \p invocation with the appropriate metadata collector if there is
574-
/// one.
573+
/// Perform \p invocation with the appropriate metadata collector for use in
574+
/// emitting an outlined value function of a value operation that can be
575+
/// performed with a value witness.
575576
///
576-
/// Returns whether there was an appropriate metadata collector (and whether
577-
/// \p invocation was called.
578-
bool withMetadataCollector(
577+
/// Returns whether there was an appropriate emitter (and whether \p
578+
/// invocation was called).
579+
bool withWitnessableMetadataCollector(
579580
IRGenFunction &IGF, SILType T, LayoutIsNeeded_t needsLayout,
580581
DeinitIsNeeded_t needsDeinit,
581582
llvm::function_ref<void(OutliningMetadataCollector &)> invocation) const;

0 commit comments

Comments
 (0)