[COFF] Don't try to add quotes to already quoted linker directives
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Tue, 30 Dec 2014 19:23:48 +0000 (19:23 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Tue, 30 Dec 2014 19:23:48 +0000 (19:23 +0000)
commit08c26613e159816f49bc9121ac9b760f98aa537c
treeec70531f0ef0fc5aaa07d82bee76f5cacfc38a79
parent88e5659aaf6b1f251728ae5d476a9fca3b638264
[COFF] Don't try to add quotes to already quoted linker directives

If a linker directive is already quoted, don't try to quote it again, otherwise it creates a mess.
This pops up in places like:
#pragma comment(linker,"\"/foo bar'\"")

Differential Revision: http://reviews.llvm.org/D6792

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224998 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
test/MC/COFF/linker-options.ll