diff options
author | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2020-02-10 11:06:44 +0100 |
---|---|---|
committer | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2020-02-12 10:25:14 +0100 |
commit | 9f6ff07f8a396dfc736c4cb6f9fba9a203531329 (patch) | |
tree | 4783fe30170ee0d7f4e64ee728b71eb6f0783005 /llvm/lib/CodeGen/TargetOptionsImpl.cpp | |
parent | c64770506b89a2376fe13080bc3b72789e6c752d (diff) | |
download | llvm-9f6ff07f8a396dfc736c4cb6f9fba9a203531329.zip llvm-9f6ff07f8a396dfc736c4cb6f9fba9a203531329.tar.gz llvm-9f6ff07f8a396dfc736c4cb6f9fba9a203531329.tar.bz2 |
[DebugInfo] Enable the debug entry values feature by default
This patch enables the debug entry values feature.
- Remove the (CC1) experimental -femit-debug-entry-values option
- Enable it for x86, arm and aarch64 targets
- Resolve the test failures
- Leave the llc experimental option for targets that do not
support the CallSiteInfo yet
Differential Revision: https://reviews.llvm.org/D73534
Diffstat (limited to 'llvm/lib/CodeGen/TargetOptionsImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetOptionsImpl.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetOptionsImpl.cpp b/llvm/lib/CodeGen/TargetOptionsImpl.cpp index d794a26..3db0f2f 100644 --- a/llvm/lib/CodeGen/TargetOptionsImpl.cpp +++ b/llvm/lib/CodeGen/TargetOptionsImpl.cpp @@ -45,3 +45,11 @@ bool TargetOptions::DisableFramePointerElim(const MachineFunction &MF) const { bool TargetOptions::HonorSignDependentRoundingFPMath() const { return !UnsafeFPMath && HonorSignDependentRoundingFPMathOption; } + +/// NOTE: There are targets that still do not support the call site info +/// production (the info about the arguments passed to the call, necessary +/// for the debug entry values), so we keep using the experimental option +/// (-debug-entry-values) to test them as well. +bool TargetOptions::ShouldEmitDebugEntryValues() const { + return SupportsDebugEntryValues || EnableDebugEntryValues; +} |