mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 06:18:56 -04:00

Classes in Tools.h inherit ultimately from Tool, which is a noun, but subclasses of Tool were named for their operation, such as "Compile", wherein the constructor call "Compile(args...)" could be misconstrued as actually causing a compile to happen. Likewise various other methods were not harmonious with their effect, in that "BuildLinker()" returned a "new namespace::Link(...)" instead of a "new namespace::Linker(...)" which it now does. Exceptions: Clang and ClangAs are un-renamed. Those are their rightful names. And there is no particulary great way to name the "Lipo-er" and a few others. Differential Revision: http://reviews.llvm.org/D10595 llvm-svn: 240455
26 lines
1.5 KiB
C
26 lines
1.5 KiB
C
// Basic binding.
|
|
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -no-integrated-as %s 2>&1 | FileCheck %s --check-prefix=CHECK01
|
|
// CHECK01: "clang", inputs: ["{{.*}}bindings.c"], output: "{{.*}}.s"
|
|
// CHECK01: "GNU::Assembler", inputs: ["{{.*}}.s"], output: "{{.*}}.o"
|
|
// CHECK01: "gcc::Linker", inputs: ["{{.*}}.o"], output: "a.out"
|
|
|
|
// Clang control options
|
|
|
|
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix=CHECK05
|
|
// CHECK05: "clang", inputs: ["{{.*}}bindings.c"], output: (nothing)
|
|
|
|
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -fsyntax-only -x c++ %s 2>&1 | FileCheck %s --check-prefix=CHECK08
|
|
// CHECK08: "clang", inputs: ["{{.*}}bindings.c"], output: (nothing)
|
|
|
|
// RUN: %clang -target i386-apple-darwin9 -ccc-print-bindings %s -S -arch ppc 2>&1 | FileCheck %s --check-prefix=CHECK11
|
|
// CHECK11: "clang", inputs: ["{{.*}}bindings.c"], output: "bindings.s"
|
|
|
|
// RUN: %clang -target powerpc-unknown-unknown -ccc-print-bindings %s -S 2>&1 | FileCheck %s --check-prefix=CHECK12
|
|
// CHECK12: "clang", inputs: ["{{.*}}bindings.c"], output: "bindings.s"
|
|
|
|
// Darwin bindings
|
|
// RUN: %clang -target i386-apple-darwin9 -no-integrated-as -ccc-print-bindings %s 2>&1 | FileCheck %s --check-prefix=CHECK14
|
|
// CHECK14: "clang", inputs: ["{{.*}}bindings.c"], output: "{{.*}}.s"
|
|
// CHECK14: "darwin::Assembler", inputs: ["{{.*}}.s"], output: "{{.*}}.o"
|
|
// CHECK14: "darwin::Linker", inputs: ["{{.*}}.o"], output: "a.out"
|