r249692 - [Myriad]: default the Dwarf version to 2

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 8 07:48:06 PDT 2015


On Oct 8, 2015 7:19 AM, "Douglas Katzman via cfe-commits" <
cfe-commits at lists.llvm.org> wrote:
>
> Author: dougk
> Date: Thu Oct  8 09:18:02 2015
> New Revision: 249692
>
> URL: http://llvm.org/viewvc/llvm-project?rev=249692&view=rev
> Log:
> [Myriad]: default the Dwarf version to 2

Just out of curiosity, what are the particular platform/tool issues that
lead to this limitation?

>
> Modified:
>     cfe/trunk/lib/Driver/ToolChains.h
>     cfe/trunk/test/Driver/myriad-toolchain.c
>
> Modified: cfe/trunk/lib/Driver/ToolChains.h
> URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.h?rev=249692&r1=249691&r2=249692&view=diff
>
==============================================================================
> --- cfe/trunk/lib/Driver/ToolChains.h (original)
> +++ cfe/trunk/lib/Driver/ToolChains.h Thu Oct  8 09:18:02 2015
> @@ -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;
>
> Modified: cfe/trunk/test/Driver/myriad-toolchain.c
> URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/myriad-toolchain.c?rev=249692&r1=249691&r2=249692&view=diff
>
==============================================================================
> --- cfe/trunk/test/Driver/myriad-toolchain.c (original)
> +++ cfe/trunk/test/Driver/myriad-toolchain.c Thu Oct  8 09:18:02 2015
> @@ -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"
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151008/f33cad89/attachment.html>


More information about the cfe-commits mailing list