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)
commitfc3e62675219aa78fe084c265f7bcea6f2834033
tree48590d4e7cbac09eae355076959c9d670385921e
parentb396e6cf350171c8ad54839588de9bf4024c0857
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

llvm-svn: 229375
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/test/MC/COFF/linker-options.ll