summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/rewrite-map-files.c
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-09-26 04:48:22 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-09-26 04:48:22 +0000
commitc094131557762e916d8e3d66f3982edb6c4ae0a4 (patch)
treebb901529d0d03de61b9281cf1e91783ee4550251 /clang/test/Driver/rewrite-map-files.c
parente35f84a2f0b0c3029827eaf1faac8dc12b7163c9 (diff)
downloadbcm5719-llvm-c094131557762e916d8e3d66f3982edb6c4ae0a4.tar.gz
bcm5719-llvm-c094131557762e916d8e3d66f3982edb6c4ae0a4.zip
Driver: avoid failing in the backend
Avoid failing in the backend when the rewrite map does not exist. Rather check that the map exists in the frontend before handing it off to the backend. Add the missing rewrite maps that the tests were referencing. llvm-svn: 282379
Diffstat (limited to 'clang/test/Driver/rewrite-map-files.c')
-rw-r--r--clang/test/Driver/rewrite-map-files.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Driver/rewrite-map-files.c b/clang/test/Driver/rewrite-map-files.c
new file mode 100644
index 00000000000..fe04fbaa1f4
--- /dev/null
+++ b/clang/test/Driver/rewrite-map-files.c
@@ -0,0 +1,2 @@
+// RUN: %clang -### -frewrite-map-file %t.map -c %s -o /dev/null 2>&1 | FileCheck %s
+// CHECK: error: no such file or directory:
OpenPOWER on IntegriCloud