OSDN Git Service

[LinkModules] Change the way ModuleLinker merges triples.
authorAkira Hatanaka <ahatanaka@apple.com>
Fri, 13 Feb 2015 00:40:41 +0000 (00:40 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Fri, 13 Feb 2015 00:40:41 +0000 (00:40 +0000)
commitac844bf562ab6adee5160e0ad1fbbfa67ad5c393
tree00fcfea919a05e69885680951c4b347e7e6c6347
parent2b4e1b9abf9af56ab2aade78f115aab0fe68e8af
[LinkModules] Change the way ModuleLinker merges triples.

This commit makes the following changes:

- Stop issuing a warning when the triples' string representations do not match
  exactly if the Triple objects generated from the strings compare equal.

- On Apple platforms, choose the triple that has the larger minimum version
  number.

rdar://problem/16743513

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228999 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/Triple.h
lib/Linker/LinkModules.cpp
test/Linker/Inputs/apple-version/1.ll [new file with mode: 0644]
test/Linker/Inputs/apple-version/2.ll [new file with mode: 0644]
test/Linker/Inputs/apple-version/3.ll [new file with mode: 0644]
test/Linker/Inputs/apple-version/4.ll [new file with mode: 0644]
test/Linker/Inputs/targettriple-a.ll
test/Linker/Inputs/targettriple-b.ll
test/Linker/Inputs/targettriple-c.ll [new file with mode: 0644]
test/Linker/apple-version.ll [new file with mode: 0644]
test/Linker/targettriple.ll