diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2025-06-09 19:36:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-09 19:36:34 +0100 |
commit | 0e4b8b8f81c97ef7374c321fd67a804dd17b4532 (patch) | |
tree | 7f20a6ac7323696961b9c94775d5f1a69c9f454e /llvm/tools/llvm-as/llvm-as.cpp | |
parent | 7f08503a3bf3acdd2a58ac712d5e95682ce583dd (diff) | |
download | llvm-0e4b8b8f81c97ef7374c321fd67a804dd17b4532.zip llvm-0e4b8b8f81c97ef7374c321fd67a804dd17b4532.tar.gz llvm-0e4b8b8f81c97ef7374c321fd67a804dd17b4532.tar.bz2 |
[DebugInfo][RemoveDIs] Rip out the UseNewDbgInfoFormat flag (#143207)
Start removing debug intrinsics support -- starting with the flag that
controls production of their replacement, debug records. This patch
removes the command-line-flag and with it the ability to switch back to
intrinsics. The module / function / block level "IsNewDbgInfoFormat"
flags get hardcoded to true, I'll to incrementally remove things that
depend on those flags.
Diffstat (limited to 'llvm/tools/llvm-as/llvm-as.cpp')
-rw-r--r-- | llvm/tools/llvm-as/llvm-as.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/tools/llvm-as/llvm-as.cpp b/llvm/tools/llvm-as/llvm-as.cpp index 081bcb6..f42a08e 100644 --- a/llvm/tools/llvm-as/llvm-as.cpp +++ b/llvm/tools/llvm-as/llvm-as.cpp @@ -66,7 +66,6 @@ static cl::opt<std::string> ClDataLayout("data-layout", cl::desc("data layout string to use"), cl::value_desc("layout-string"), cl::init(""), cl::cat(AsCat)); -extern cl::opt<bool> UseNewDbgInfoFormat; static void WriteOutputFile(const Module *M, const ModuleSummaryIndex *Index) { // Infer the output filename if needed. @@ -140,10 +139,8 @@ int main(int argc, char **argv) { return 1; } - // Convert to new debug format if requested. - M->setIsNewDbgInfoFormat(UseNewDbgInfoFormat); - if (M->IsNewDbgInfoFormat) - M->removeDebugIntrinsicDeclarations(); + M->setIsNewDbgInfoFormat(true); + M->removeDebugIntrinsicDeclarations(); std::unique_ptr<ModuleSummaryIndex> Index = std::move(ModuleAndIndex.Index); |