]> granicus.if.org Git - clang/commit
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)
commit7df0fd1b25469e7c5574479d1ee949dd84f54e1c
treef39e260993116ae26bb1627895aeb2a767ec9945
parent1dd6f1e3832bcca23ea98bd89f68d8bebe7aa809
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282379 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/Inputs/rewrite-1.map [new file with mode: 0644]
test/Driver/Inputs/rewrite-2.map [new file with mode: 0644]
test/Driver/Inputs/rewrite.map [new file with mode: 0644]
test/Driver/rewrite-map-files.c [new file with mode: 0644]