aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorabidh <haqadeer@amd.com>2024-04-22 11:19:05 +0100
committerGitHub <noreply@github.com>2024-04-22 11:19:05 +0100
commit087b33bbff1ab966656a81f9dd8e136fbd966f58 (patch)
treef89b71109c416a417ebf8a8bd61e3b533731d2d0 /flang/lib/Frontend/CompilerInvocation.cpp
parentfdc8c5440041ac53726d0b3587762ceeb8cbbb4f (diff)
downloadllvm-087b33bbff1ab966656a81f9dd8e136fbd966f58.zip
llvm-087b33bbff1ab966656a81f9dd8e136fbd966f58.tar.gz
llvm-087b33bbff1ab966656a81f9dd8e136fbd966f58.tar.bz2
[flang] Default -g to full debug info. (#89418)
Currently, -g defaults to line tables only. This PR changes that to full debug information. This will allow us to test/use the upcoming debug info changes.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--flang/lib/Frontend/CompilerInvocation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp
index e432c5a..f1b7b53 100644
--- a/flang/lib/Frontend/CompilerInvocation.cpp
+++ b/flang/lib/Frontend/CompilerInvocation.cpp
@@ -145,6 +145,7 @@ static bool parseDebugArgs(Fortran::frontend::CodeGenOptions &opts,
}
opts.setDebugInfo(val.value());
if (val != llvm::codegenoptions::DebugLineTablesOnly &&
+ val != llvm::codegenoptions::FullDebugInfo &&
val != llvm::codegenoptions::NoDebugInfo) {
const auto debugWarning = diags.getCustomDiagID(
clang::DiagnosticsEngine::Warning, "Unsupported debug option: %0");