From c178035c178f059d0da6402f1500a0a7928abf20 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Mon, 25 Mar 2019 00:14:37 +0000 Subject: [PATCH] [llas] Default to DWARF-2 for now. --- llvm/tools/llas/llas.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/tools/llas/llas.cpp b/llvm/tools/llas/llas.cpp index 3d6b91dc2de..034fcd4d5c9 100644 --- a/llvm/tools/llas/llas.cpp +++ b/llvm/tools/llas/llas.cpp @@ -499,8 +499,8 @@ LLVM_DEBUG(dbgs() << TheTarget->getName() << " triple named " \ Ctx.setAllowTemporaryLabels(false); Ctx.setGenDwarfForAssembly(GenDwarfForAssembly); - // Default to 4 for dwarf version. - unsigned DwarfVersion = MCOptions.DwarfVersion ? MCOptions.DwarfVersion : 4; + // Default to 2 for dwarf version. + unsigned DwarfVersion = MCOptions.DwarfVersion ? MCOptions.DwarfVersion : 2; if (DwarfVersion < 2 || DwarfVersion > 4) { errs() << ProgName << ": Dwarf version " << DwarfVersion << " is not supported." << '\n';