]> granicus.if.org Git - clang/commitdiff
[Myriad]: default the Dwarf version to 2
authorDouglas Katzman <dougk@google.com>
Thu, 8 Oct 2015 14:18:02 +0000 (14:18 +0000)
committerDouglas Katzman <dougk@google.com>
Thu, 8 Oct 2015 14:18:02 +0000 (14:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249692 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.h
test/Driver/myriad-toolchain.c

index a1811e9a4f27ad8aa9ebb6e5454b413019820ebf..58b417c9705f07bf79c634d81c90087a3d05e26b 100644 (file)
@@ -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;
index 9db62f5f8e159fdc228cc3a3c6f4b5254d004f06..6dce427359b0ad2c179334c99e7b9aa93ef233bd 100644 (file)
@@ -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"