summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2016-04-12 20:22:32 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2016-04-12 20:22:32 +0000
commitb5e80c3117661d32f55d67420b9ff081873c4f2f (patch)
treebdab216c88d76956f1519b8661a0ef3d82978fd5 /clang/test
parent6893570853ab02e78a3e6dd70e0e1bae064c4802 (diff)
downloadbcm5719-llvm-b5e80c3117661d32f55d67420b9ff081873c4f2f.tar.gz
bcm5719-llvm-b5e80c3117661d32f55d67420b9ff081873c4f2f.zip
Pass -backend-option to LLVM when there is no target machine.
Clang should pass -backend-option to LLVM even though there is no target machine, since LLVM passes are used when emitting LLVM IR. Differential Revision: http://reviews.llvm.org/D17552 llvm-svn: 266117
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Frontend/backend-option.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Frontend/backend-option.c b/clang/test/Frontend/backend-option.c
new file mode 100644
index 00000000000..e17757422e4
--- /dev/null
+++ b/clang/test/Frontend/backend-option.c
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 %s -emit-llvm -backend-option -time-passes -o - 2>&1 | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -backend-option -time-passes -o - -triple spir-unknown-unknown 2>&1 | FileCheck %s
+// CHECK: Pass execution timing report
+
OpenPOWER on IntegriCloud