mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
ac844bf562
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
22 lines
807 B
LLVM
22 lines
807 B
LLVM
; REQUIRES: shell
|
|
; RUN: llvm-link %s %S/Inputs/targettriple-a.ll -S -o - 2>%t.a.err | FileCheck %s
|
|
; RUN: (echo foo ;cat %t.a.err) | FileCheck --check-prefix=WARN-A %s
|
|
|
|
; RUN: llvm-link %s %S/Inputs/targettriple-b.ll -S -o - 2>%t.b.err | FileCheck %s
|
|
; RUN: cat %t.b.err | FileCheck --check-prefix=WARN-B %s
|
|
|
|
; RUN: llvm-link -suppress-warnings %s %S/Inputs/targettriple-b.ll -S -o - 2>%t.no-warn.err | FileCheck %s
|
|
; RUN: (echo foo ;cat %t.no-warn.err) | FileCheck --check-prefix=WARN-A %s
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
; CHECK: target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
; WARN-A-NOT: WARNING
|
|
|
|
; i386 and x86_64 map to different ArchType enums.
|
|
; WARN-B: WARNING: Linking two modules of different target triples:
|
|
|
|
; x86_64h and x86_64 map to the same ArchType enum.
|
|
; WARN-C-NOT: WARNING
|