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 D6792
[COFF] Don't try to add quotes to already quoted linker directives mkuper on Dec 29 2014, 2:01 AM. Authored by
Details 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:
Diff Detail Event Timeline
|
This would probably be a little nicer as:
if (!Op.startswith("\"") && Op.find(" ") != StringRef::npos)
This way we don't need to hunt for spaces if it starts with a \" sequence.