From: Douglas Katzman Date: Thu, 8 Oct 2015 14:18:02 +0000 (+0000) Subject: [Myriad]: default the Dwarf version to 2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f088839a1e63daa9880f254e074a54783c8f24c0;p=clang [Myriad]: default the Dwarf version to 2 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249692 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/ToolChains.h b/lib/Driver/ToolChains.h index a1811e9a4f..58b417c970 100644 --- a/lib/Driver/ToolChains.h +++ b/lib/Driver/ToolChains.h @@ -981,6 +981,7 @@ public: Tool *SelectTool(const JobAction &JA) const override; void getCompilerSupportDir(std::string &Dir) const; void getBuiltinLibDir(std::string &Dir) const; + unsigned GetDefaultDwarfVersion() const override { return 2; } protected: Tool *buildLinker() const override; diff --git a/test/Driver/myriad-toolchain.c b/test/Driver/myriad-toolchain.c index 9db62f5f8e..6dce427359 100644 --- a/test/Driver/myriad-toolchain.c +++ b/test/Driver/myriad-toolchain.c @@ -57,3 +57,6 @@ // RUN: %clang -target sparc-myriad -### -nostdlib %s 2>&1 | FileCheck %s --check-prefix=NOSTDLIB // // NOSTDLIB-NOT: "-lc" + +// RUN: %clang -### -c -g %s -target sparc-myriad 2>&1 | FileCheck -check-prefix=G_SPARC %s +// G_SPARC: "-debug-info-kind=limited" "-dwarf-version=2"