[flang] Rename AddDebugFoundation to AddDebugInfo (NFC) (#89191)
These changes were missed in PR #88526.
GitOrigin-RevId: 6d9ee88599f551be91938ed77fe66d2d6b01b550
diff --git a/include/flang/Optimizer/Transforms/Passes.td b/include/flang/Optimizer/Transforms/Passes.td
index 187796d..bfc0db8 100644
--- a/include/flang/Optimizer/Transforms/Passes.td
+++ b/include/flang/Optimizer/Transforms/Passes.td
@@ -204,7 +204,7 @@
def AddDebugInfo : Pass<"add-debug-info", "mlir::ModuleOp"> {
let summary = "Add the debug info";
let description = [{
- Add the foundation for emitting debug info that can be understood by llvm.
+ Emit debug info that can be understood by llvm.
}];
let constructor = "::fir::createAddDebugInfoPass()";
let dependentDialects = [
diff --git a/include/flang/Tools/CLOptions.inc b/include/flang/Tools/CLOptions.inc
index 268d00b..ea297fb 100644
--- a/include/flang/Tools/CLOptions.inc
+++ b/include/flang/Tools/CLOptions.inc
@@ -76,7 +76,7 @@
#if !defined(FLANG_EXCLUDE_CODEGEN)
DisableOption(CodeGenRewrite, "codegen-rewrite", "rewrite FIR for codegen");
DisableOption(TargetRewrite, "target-rewrite", "rewrite FIR for target");
-DisableOption(DebugFoundation, "debug-foundation", "Add debug foundation");
+DisableOption(DebugInfo, "debug-info", "Add debug info");
DisableOption(FirToLlvmIr, "fir-to-llvmir", "FIR to LLVM-IR dialect");
DisableOption(LlvmIrToLlvm, "llvm", "conversion to LLVM");
DisableOption(BoxedProcedureRewrite, "boxed-procedure-rewrite",
@@ -156,8 +156,8 @@
}
inline void addDebugInfoPass(mlir::PassManager &pm) {
- addPassConditionally(pm, disableDebugFoundation,
- [&]() { return fir::createAddDebugInfoPass(); });
+ addPassConditionally(
+ pm, disableDebugInfo, [&]() { return fir::createAddDebugInfoPass(); });
}
inline void addFIRToLLVMPass(
diff --git a/lib/Optimizer/Transforms/AddDebugInfo.cpp b/lib/Optimizer/Transforms/AddDebugInfo.cpp
index b719f67..4ca3380 100644
--- a/lib/Optimizer/Transforms/AddDebugInfo.cpp
+++ b/lib/Optimizer/Transforms/AddDebugInfo.cpp
@@ -37,7 +37,7 @@
#include "flang/Optimizer/Transforms/Passes.h.inc"
} // namespace fir
-#define DEBUG_TYPE "flang-add-debug-foundation"
+#define DEBUG_TYPE "flang-add-debug-info"
namespace {