Skip to content

Commit 5580215

Browse files
committed
Remove -fextend-this-ptr alias
1 parent 7ff39f8 commit 5580215

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -418,14 +418,14 @@ New Compiler Flags
418418
through optimizations, meaning that variables will typically be visible in a
419419
debugger more often. The flag has two levels: ``-fextend-variable-liveness``,
420420
or ``-fextend-variable-liveness=all``, extendes the liveness of all user
421-
variables and the ``this`` pointer. Alternatively ``-fextend-this-ptr``, or
422-
``-fextend-variable-liveness=this``, has the same behaviour but applies only
423-
to the ``this`` variable in C++ class member functions, meaning its effect is
424-
a strict subset of ``-fextend-variable-liveness``. Note that this flag
425-
modifies the results of optimizations that Clang performs, which will result
426-
in reduced performance in generated code; however, this feature will not
427-
extend the liveness of some variables in cases where doing so would likely
428-
have a severe impact on generated code performance.
421+
variables and the ``this`` pointer. Alternatively
422+
``-fextend-variable-liveness=this`` has the same behaviour but applies only to
423+
the ``this`` variable in C++ class member functions, meaning its effect is a
424+
strict subset of ``-fextend-variable-liveness``. Note that this flag modifies
425+
the results of optimizations that Clang performs, which will result in reduced
426+
performance in generated code; however, this feature will not extend the
427+
liveness of some variables in cases where doing so would likely have a severe
428+
impact on generated code performance.
429429

430430
Deprecated Compiler Flags
431431
-------------------------

clang/include/clang/Driver/Options.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4310,10 +4310,6 @@ def fextend_variable_liveness_EQ : Joined<["-"], "fextend-variable-liveness=">,
43104310
NormalizedValues<["All", "This", "None"]>,
43114311
NormalizedValuesScope<"CodeGenOptions::ExtendVariableLivenessKind">,
43124312
MarshallingInfoEnum<CodeGenOpts<"ExtendVariableLiveness">, "None">;
4313-
def fextend_this_ptr_liveness : Flag<["-"], "fextend-this-ptr-liveness">,
4314-
Visibility<[ClangOption, CC1Option]>,
4315-
Alias<fextend_variable_liveness_EQ>, AliasArgs<["this"]>,
4316-
HelpText<"Alias for -fextend-variable-liveness=this.">;
43174313
def fextend_variable_liveness : Flag<["-"], "fextend-variable-liveness">,
43184314
Visibility<[ClangOption, CC1Option]>,
43194315
Alias<fextend_variable_liveness_EQ>, AliasArgs<["all"]>,

clang/test/Driver/extend-variable-liveness.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// RUN: %clang -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,DEFAULT
55
// RUN: %clang -fextend-variable-liveness=none -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,NONE
66
// RUN: %clang -fextend-variable-liveness=this -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,THIS
7-
// RUN: %clang -fextend-this-ptr-liveness -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,THIS
87
// RUN: %clang -fextend-variable-liveness=all -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,ALL
98
// RUN: %clang -fextend-variable-liveness -### -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK,ALL
109

0 commit comments

Comments
 (0)