Driver: reuse getCompilerRT in place of addSanitizerRTWindows
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 2 Jan 2015 20:00:55 +0000 (20:00 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 2 Jan 2015 20:00:55 +0000 (20:00 +0000)
commit1d59f49f9ce096887aaa5fdc4be134c9ea5784a9
treed8c003b1afd2adaca7ef6cf3e76097b6304c94a5
parent5e9e13f54aec731c39b4f0e8db26e35701dc4ce5
Driver: reuse getCompilerRT in place of addSanitizerRTWindows

The logic for addSanitizerRTWindows was performing the same logical operation as
getCompilerRT, which was previously fully generalised for Linux and Windows.
This avoids having a duplication of the logic for building up the name of a
clang_rt component.  This change does move the current limitation for Windows
into getArchNameForCompilerRTLib, where it is assumed that the architecture for
Windows is always i386.

llvm-svn: 225087
clang/lib/Driver/Tools.cpp