Skip to content

Commit 8c368c5

Browse files
committed
remove println debugging
1 parent f6a2bed commit 8c368c5

File tree

3 files changed

+1
-38
lines changed

3 files changed

+1
-38
lines changed

include/swift/AST/Decl.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5883,15 +5883,7 @@ class ParamDecl : public VarDecl {
58835883

58845884
/// Whether or not this parameter is marked with 'isolated'.
58855885
bool isDistributedKnownToBeLocal() const {
5886-
auto yes = getAttrs().hasAttribute<DistributedKnownToBeLocalAttr>() ||
5887-
ArgumentNameAndFlags.getInt().contains(ArgumentNameFlags::IsDistributedKnownToBeLocal);
5888-
if (getAttrs().hasAttribute<DistributedKnownToBeLocalAttr>()) {
5889-
fprintf(stderr, "[%s:%d] (%s) isDistributed LOCAL attr: %s\n", __FILE__, __LINE__, __FUNCTION__, this->getName().str().str().c_str());
5890-
}
5891-
if (ArgumentNameAndFlags.getInt().contains(ArgumentNameFlags::IsDistributedKnownToBeLocal)) {
5892-
fprintf(stderr, "[%s:%d] (%s) isDistributed LOCAL flag: %s\n", __FILE__, __LINE__, __FUNCTION__, this->getName().str().str().c_str());
5893-
}
5894-
return yes;
5886+
return ArgumentNameAndFlags.getInt().contains(ArgumentNameFlags::IsDistributedKnownToBeLocal);
58955887
}
58965888

58975889
void setDistributedKnownToBeLocal(bool value = true) {

lib/Sema/TypeCheckConcurrency.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,8 +1281,6 @@ static void noteIsolatedActorMember(
12811281
// the declaration.
12821282
if (isDistributedActor) {
12831283
if (auto var = dyn_cast<VarDecl>(decl)) {
1284-
fprintf(stderr, "[%s:%d] (%s) VAR:\n", __FILE__, __LINE__, __FUNCTION__);
1285-
decl->dump();
12861284
// Distributed actor properties are never accessible externally.
12871285
decl->diagnose(diag::distributed_actor_isolated_property,
12881286
decl->getDescriptiveKind(), decl->getName(),
@@ -2113,13 +2111,6 @@ namespace {
21132111
}
21142112

21152113
VarDecl *findReferencedCallBase(Expr *expr) {
2116-
fprintf(stderr, "[%s:%d] (%s) FIND BASE:\n", __FILE__, __LINE__, __FUNCTION__);
2117-
expr->dump();
2118-
fprintf(stderr, "[%s:%d] (%s) ============================================================\n", __FILE__, __LINE__, __FUNCTION__);
2119-
fprintf(stderr, "[%s:%d] (%s) ============================================================\n", __FILE__, __LINE__, __FUNCTION__);
2120-
fprintf(stderr, "[%s:%d] (%s) ============================================================\n", __FILE__, __LINE__, __FUNCTION__);
2121-
fprintf(stderr, "[%s:%d] (%s) ============================================================\n", __FILE__, __LINE__, __FUNCTION__);
2122-
21232114
if (auto selfVar = getReferencedParamOrCapture(expr))
21242115
if (selfVar->isSelfParameter() || selfVar->isSelfParamCapture())
21252116
return selfVar;
@@ -2297,26 +2288,11 @@ namespace {
22972288
/// context and false otherwise.
22982289
bool isDistributedAccess(SourceLoc declLoc, ValueDecl *decl,
22992290
Expr *context) {
2300-
fprintf(stderr, "[%s:%d] (%s) decl:\n", __FILE__, __LINE__, __FUNCTION__);
2301-
decl->dump();
2302-
23032291
// If base of the call is 'local' we permit skip distributed checks.
23042292
if (auto base = findReferencedCallBase(context)) {
2305-
fprintf(stderr, "[%s:%d] (%s) base:\n", __FILE__, __LINE__, __FUNCTION__);
2306-
base->dump();
2307-
23082293
if (base->isDistributedKnownToBeLocal()) {
2309-
fprintf(stderr, "[%s:%d] (%s) was known local!\n", __FILE__, __LINE__, __FUNCTION__);
2310-
base->dump();
2311-
23122294
return false;
2313-
} else {
2314-
fprintf(stderr, "[%s:%d] (%s) was NOT known local!\n", __FILE__, __LINE__, __FUNCTION__);
2315-
base->dump();
23162295
}
2317-
} else {
2318-
fprintf(stderr, "[%s:%d] (%s) no base for: \n", __FILE__, __LINE__, __FUNCTION__);
2319-
context->dump();
23202296
}
23212297

23222298
// Cannot reference subscripts, or stored properties.
@@ -2331,8 +2307,6 @@ namespace {
23312307
return true;
23322308

23332309
// otherwise, it was a normal property or subscript and therefore illegal
2334-
fprintf(stderr, "[%s:%d] (%s) property access...!\n", __FILE__, __LINE__, __FUNCTION__);
2335-
23362310
ctx.Diags.diagnose(
23372311
declLoc, diag::distributed_actor_isolated_non_self_reference,
23382312
decl->getDescriptiveKind(), decl->getName());

lib/Sema/TypeCheckEffects.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2882,9 +2882,6 @@ class CheckEffectsCoverage : public EffectsHandlingWalker<CheckEffectsCoverage>
28822882
if (callee) {
28832883
auto declKind = callee->getDescriptiveKind();
28842884

2885-
fprintf(stderr, "[%s:%d] (%s) callee:\n", __FILE__, __LINE__, __FUNCTION__);
2886-
callee->dump();
2887-
28882885
if (call->usesDistributedThunk()) {
28892886
// We need to determine whether this is a method or a property.
28902887
// Computed properties always form an implicit call to the thunk.

0 commit comments

Comments
 (0)