mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
c66e3e91c5
compatible target triple Currently, an assertion fails in ThinLTOCodeGenerator::addModule when the target triple of the module being added doesn't match that of the one stored in TMBuilder. This patch relaxes the constraint and makes changes to allow target triples that only differ in their version numbers on Apple platforms, similarly to what r228999 did. rdar://problem/30133904 Differential Revision: https://reviews.llvm.org/D33291 llvm-svn: 303326
11 lines
479 B
LLVM
11 lines
479 B
LLVM
; RUN: opt -module-summary %s -o %t1.bc
|
|
; RUN: opt -module-summary %p/Inputs/merge-triple.ll -o %t2.bc
|
|
; RUN: llvm-lto -thinlto-action=optimize %t1.bc %t2.bc
|
|
; RUN: llvm-dis < %t1.bc.thinlto.imported.bc | FileCheck %s --check-prefix=CHECK1
|
|
; RUN: llvm-dis < %t2.bc.thinlto.imported.bc | FileCheck %s --check-prefix=CHECK2
|
|
|
|
target triple = "x86_64-apple-macosx10.12.0"
|
|
|
|
; CHECK1: target triple = "x86_64-apple-macosx10.12.0"
|
|
; CHECK2: target triple = "x86_64-apple-macosx10.11.0"
|