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

- This magically enables using 'clang -cc1' as a replacement for most of 'llvm-as', 'llvm-dis', 'llc' and 'opt' functionality. For example, 'llvm-as' is: $ clang -cc1 -emit-llvm-bc FOO.ll -o FOO.bc and 'llvm-dis' is: $ clang -cc1 -emit-llvm FOO.bc -o - and 'opt' is, e.g.: $ clang -cc1 -emit-llvm -O3 -o FOO.opt.ll FOO.ll and 'llc' is, e.g.: $ clang -cc1 -S -o - FOO.ll The nice thing about using the backend tools this way is that they are guaranteed to exactly match how the compiler generates code (for example, setting the same backend options). llvm-svn: 105583
9 lines
212 B
LLVM
9 lines
212 B
LLVM
; RUN: %clang_cc1 -S -o - %s 2>&1 | FileCheck %s
|
|
|
|
target triple = "x86_64-apple-darwin10"
|
|
|
|
define i32 @f0() nounwind ssp {
|
|
; CHECK: {{.*}}ir-support-errors.ll:7:16: error: expected value token
|
|
ret i32 x
|
|
}
|