[Myriad]: default the Dwarf version to 2

llvm-svn: 249692
This commit is contained in:
Douglas Katzman 2015-10-08 14:18:02 +00:00
parent ca6b64ff04
commit 989157a3ad
2 changed files with 4 additions and 0 deletions

View 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;

View 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"