AsmPrinter: Fix wrong OS X versions being emitted for darwin triples
authorMatthias Braun <matze@braunis.de>
Wed, 13 Jan 2016 01:18:13 +0000 (01:18 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 13 Jan 2016 01:18:13 +0000 (01:18 +0000)
commit94d0a9154e9ec3df3398f11649c024ef8378b9c8
tree115f2a8ed81d44d1ca6535e46eb3ebf0830e2681
parent222a88109a74767391502810def760d2623dbcd7
AsmPrinter: Fix wrong OS X versions being emitted for darwin triples

The version numbers of the darwin kernel are different from the version
numbers of OS X, so we need adjustments if we had "*-*-darwin" triples.
Use the existing utility functions in TargetTriple for this.

Fixes rdar://22056966

Differential Revision: http://reviews.llvm.org/D14601

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257555 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
test/CodeGen/X86/2008-11-03-F80VAARG.ll
test/CodeGen/X86/version_directive.ll [new file with mode: 0644]