From ad501054f1b5ce0aca47c931aa03a22706e4ff8d Mon Sep 17 00:00:00 2001 From: Quinn Pham Date: Wed, 17 Nov 2021 12:21:58 -0600 Subject: [PATCH] [NFC][clang] Inclusive language: rename master variable to controller in debug-info tests [NFC] As part of using inclusive language within the llvm project, this patch replaces master with controller in these tests. Reviewed By: rjmccall Differential Revision: https://reviews.llvm.org/D114108 --- clang/test/CodeGenObjC/debug-info-block-helper.m | 6 +++--- cross-project-tests/debuginfo-tests/llgdb-tests/blocks.m | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/clang/test/CodeGenObjC/debug-info-block-helper.m b/clang/test/CodeGenObjC/debug-info-block-helper.m index 9149628..ac4ba39 100644 --- a/clang/test/CodeGenObjC/debug-info-block-helper.m +++ b/clang/test/CodeGenObjC/debug-info-block-helper.m @@ -12,17 +12,17 @@ extern void foo(void(^)(void)); @interface A:NSObject @end @implementation A - (void) helper { - int master = 0; + int controller = 0; __block int m2 = 0; __block int dbTransaction = 0; int (^x)(void) = ^(void) { (void) self; - (void) master; + (void) controller; (void) dbTransaction; m2++; return m2; }; - master = x(); + controller = x(); } @end diff --git a/cross-project-tests/debuginfo-tests/llgdb-tests/blocks.m b/cross-project-tests/debuginfo-tests/llgdb-tests/blocks.m index 8e5a212..79ec6fd 100644 --- a/cross-project-tests/debuginfo-tests/llgdb-tests/blocks.m +++ b/cross-project-tests/debuginfo-tests/llgdb-tests/blocks.m @@ -11,7 +11,7 @@ // CHECK: ${{[0-9]}} = 1 // DEBUGGER: p dbTransaction // CHECK: ${{[0-9]}} = 0 -// DEBUGGER: p master +// DEBUGGER: p controller // CHECK: ${{[0-9]}} = 0 #include @@ -21,16 +21,16 @@ extern void foo(void(^)(void)); @interface A:NSObject @end @implementation A - (void) helper { - int master = 0; + int controller = 0; __block int m2 = 0; __block int dbTransaction = 0; int (^x)(void) = ^(void) { (void) self; - (void) master; + (void) controller; (void) dbTransaction; m2++; return m2; }; - master = x(); + controller = x(); } @end -- 2.7.4