1234567891011121314151617181920212223242526272829303132333435 |
- From 4cb0d0c154acebb80112a811ed9850d27c4963a9 Mon Sep 17 00:00:00 2001
- From: Jun Yuan Tan <junyuan.tan@starfivetech.com>
- Date: Fri, 22 Oct 2021 12:03:20 +0800
- Subject: [PATCH] clang: Switch defaults to dwarf-5 debug info on Linux
- GCC 11 has defaulted to DWARF-5 as well, this matches
- debug info formats, so mix and match of components with GCC 11
- works.
- Upstream-Status: Pending
- Rebased to LLVM 14.0.0 by Jun Yuan Tan
- Signed-off-by: Khem Raj <raj.khem@gmail.com>
- Signed-off-by: Jun Yuan Tan <junyuan.tan@starfivetech.com>
- ---
- clang/lib/Driver/ToolChains/Linux.h | 2 ++
- 1 file changed, 2 insertions(+)
- diff --git a/clang/lib/Driver/ToolChains/Linux.h b/clang/lib/Driver/ToolChains/Linux.h
- index 169a37c44072..f432d36c0d17 100644
- --- a/clang/lib/Driver/ToolChains/Linux.h
- +++ b/clang/lib/Driver/ToolChains/Linux.h
- @@ -61,6 +61,8 @@ public:
- const llvm::opt::ArgList &DriverArgs, const JobAction &JA,
- const llvm::fltSemantics *FPType = nullptr) const override;
-
- + unsigned GetDefaultDwarfVersion() const override { return 5; }
- +
- protected:
- Tool *buildAssembler() const override;
- Tool *buildLinker() const override;
- --
- 2.33.0
|