Driver: Fix a -Wshadow issue from r237091
authorJustin Bogner <mail@justinbogner.com>
Tue, 12 May 2015 06:30:48 +0000 (06:30 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 12 May 2015 06:30:48 +0000 (06:30 +0000)
commit2fd95f6b92aa28705aea26da878c51c33143022c
tree1e491bad119ad9dbd9f45be6788318f56e35b862
parentd84713bd8687abc4a70ab25eddb30e22a8731955
Driver: Fix a -Wshadow issue from r237091

The MachO toolchain has an isTargetIOSBased method, but it isn't
virtual so it isn't very meaningful to call it. After thinking about
this, I guess that putting this logic in the MachO class is a bit of a
layering violation anyway. Do this more like how we handle
AddLinkRuntimeLibArgs instead.

llvm-svn: 237095
clang/lib/Driver/ToolChains.cpp
clang/lib/Driver/ToolChains.h
clang/test/Driver/instrprof-ld.c