]> granicus.if.org Git - clang/commit
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)
commit3d124dd14bb2fe8de1ffb5c98dcff9ce7eb74508
tree3ef724c2a288000b553922ba75fad096cea6dfaf
parent8332fd0ef98897dd7a5669395778fec9c043192b
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225087 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp