diff options
author | Djordje Todorovic <djordje.todorovic@syrmia.com> | 2020-07-24 13:31:36 +0200 |
---|---|---|
committer | Djordje Todorovic <djolertrk@gmail.com> | 2020-07-24 13:34:05 +0200 |
commit | cbb3571b0df5a0948602aa4d2b913b64270143ff (patch) | |
tree | d5c99192b2234fbcabfed9ed3bdc9c48df945bbc /llvm/lib/CodeGen/TargetOptionsImpl.cpp | |
parent | 6a0f0746aca0620899e59a70e4e60e19a8219c48 (diff) | |
download | llvm-cbb3571b0df5a0948602aa4d2b913b64270143ff.zip llvm-cbb3571b0df5a0948602aa4d2b913b64270143ff.tar.gz llvm-cbb3571b0df5a0948602aa4d2b913b64270143ff.tar.bz2 |
[DWARF] Avoid entry_values production for SCE
SONY debugger does not prefer debug entry values feature, so
the plan is to avoid production of the entry values
by default when the tuning is SCE debugger.
The feature still can be enabled with the -debug-entry-values
option for the testing/development purposes.
This patch addresses PR46643.
Differential Revision: https://reviews.llvm.org/D83462
Diffstat (limited to 'llvm/lib/CodeGen/TargetOptionsImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetOptionsImpl.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetOptionsImpl.cpp b/llvm/lib/CodeGen/TargetOptionsImpl.cpp index 4866d4c..0731cf9 100644 --- a/llvm/lib/CodeGen/TargetOptionsImpl.cpp +++ b/llvm/lib/CodeGen/TargetOptionsImpl.cpp @@ -47,7 +47,11 @@ bool TargetOptions::HonorSignDependentRoundingFPMath() const { } /// NOTE: There are targets that still do not support the debug entry values -/// production. +/// production and that is being controlled with the SupportsDebugEntryValues. +/// In addition, SCE debugger does not have the feature implemented, so prefer +/// not to emit the debug entry values in that case. +/// The EnableDebugEntryValues can be used for the testing purposes. bool TargetOptions::ShouldEmitDebugEntryValues() const { - return SupportsDebugEntryValues || EnableDebugEntryValues; + return (SupportsDebugEntryValues && DebuggerTuning != DebuggerKind::SCE) || + EnableDebugEntryValues; } |