Rename llvm.recoverframeallocation to llvm.framerecover
[oota-llvm.git] / lib / CodeGen / TargetLoweringObjectFileImpl.cpp
index be811a12d5f8a7e5f84bb7cd6f086e47cd9e04a5..9f1e06b4725d2e894e4d3a16b448fe35dcf384fa 100644 (file)
@@ -932,7 +932,7 @@ emitModuleFlags(MCStreamer &Streamer,
       StringRef Op = MDOption->getString();
       // Lead with a space for consistency with our dllexport implementation.
       std::string Escaped(" ");
-      if (Op.find(" ") != StringRef::npos) {
+      if (!Op.startswith("\"") && (Op.find(" ") != StringRef::npos)) {
         // The PE-COFF spec says args with spaces must be quoted.  It doesn't say
         // how to escape quotes, but it probably uses this algorithm:
         // http://msdn.microsoft.com/en-us/library/17w5ykft(v=vs.85).aspx