mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-26 23:09:03 -04:00

Recommit of r317951 and r317951 along with what I believe should fix the remaining buildbot failures - the target triple should be specified for both the ThinLTO pre-thinlink compile and backend (post-thinlink) compile to ensure it is consistent. Original description: The LTO Config field wasn't being set when invoking a ThinLTO backend via clang (i.e. for distributed builds). llvm-svn: 318042
11 lines
525 B
C
11 lines
525 B
C
// Test to ensure -fdebug-pass-manager works when invoking the
|
|
// ThinLTO backend path with the new PM.
|
|
// REQUIRES: x86-registered-target
|
|
// RUN: %clang_cc1 -o %t.o -flto=thin -fexperimental-new-pass-manager -triple x86_64-unknown-linux-gnu -emit-llvm-bc %s
|
|
// RUN: llvm-lto -thinlto -o %t %t.o
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-obj -O2 -o %t2.o -x ir %t.o -fthinlto-index=%t.thinlto.bc -fdebug-pass-manager -fexperimental-new-pass-manager 2>&1 | FileCheck %s
|
|
// CHECK: Running pass:
|
|
|
|
void foo() {
|
|
}
|