aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetOptionsImpl.cpp
diff options
context:
space:
mode:
authorDjordje Todorovic <djordje.todorovic@syrmia.com>2020-03-19 12:13:18 +0100
committerDjordje Todorovic <djordje.todorovic@syrmia.com>2020-03-19 13:57:30 +0100
commitd9b962100942c71a4c26debaa716f7ab0c4ea8a1 (patch)
treec6ded0d1a6b5720a681b6b0a79a7914723a788ff /llvm/lib/CodeGen/TargetOptionsImpl.cpp
parentdcbcec4822f47ec5b638dd9c20dcebd464569dae (diff)
downloadllvm-d9b962100942c71a4c26debaa716f7ab0c4ea8a1.zip
llvm-d9b962100942c71a4c26debaa716f7ab0c4ea8a1.tar.gz
llvm-d9b962100942c71a4c26debaa716f7ab0c4ea8a1.tar.bz2
Reland D73534: [DebugInfo] Enable the debug entry values feature by default
The issue that was causing the build failures was fixed with the D76164.
Diffstat (limited to 'llvm/lib/CodeGen/TargetOptionsImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetOptionsImpl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetOptionsImpl.cpp b/llvm/lib/CodeGen/TargetOptionsImpl.cpp
index d794a26..4866d4c 100644
--- a/llvm/lib/CodeGen/TargetOptionsImpl.cpp
+++ b/llvm/lib/CodeGen/TargetOptionsImpl.cpp
@@ -45,3 +45,9 @@ bool TargetOptions::DisableFramePointerElim(const MachineFunction &MF) const {
bool TargetOptions::HonorSignDependentRoundingFPMath() const {
return !UnsafeFPMath && HonorSignDependentRoundingFPMathOption;
}
+
+/// NOTE: There are targets that still do not support the debug entry values
+/// production.
+bool TargetOptions::ShouldEmitDebugEntryValues() const {
+ return SupportsDebugEntryValues || EnableDebugEntryValues;
+}