Driver: avoid failing in the backend
authorSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 26 Sep 2016 04:48:22 +0000 (04:48 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 26 Sep 2016 04:48:22 +0000 (04:48 +0000)
commitc094131557762e916d8e3d66f3982edb6c4ae0a4
treebb901529d0d03de61b9281cf1e91783ee4550251
parente35f84a2f0b0c3029827eaf1faac8dc12b7163c9
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
clang/lib/Driver/Tools.cpp
clang/test/Driver/Inputs/rewrite-1.map [new file with mode: 0644]
clang/test/Driver/Inputs/rewrite-2.map [new file with mode: 0644]
clang/test/Driver/Inputs/rewrite.map [new file with mode: 0644]
clang/test/Driver/rewrite-map-files.c [new file with mode: 0644]