Fix quoting of #pragma comment for MS compat, LLVM part.
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Mon, 16 Feb 2015 11:57:17 +0000 (11:57 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Mon, 16 Feb 2015 11:57:17 +0000 (11:57 +0000)
commit012d5929f1abea6ae8eb8245bbe4df037e848c85
tree4f813866609f4684e7ac444472e8e08b849d024e
parent29679ccc12f8b13bc92c7e4b1823a972cbc99483
Fix quoting of #pragma comment for MS compat, LLVM part.

For #pragma comment(linker, ...) MSVC expects the comment string to be quoted, but for #pragma comment(lib, ...) the compiler itself quotes the library name.
Since this distinction disappears by the time the directive reaches the backend, move quoting for the "lib" version to the frontend.

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

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