<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Modified: llvm/trunk/lib/IR/AsmWriter.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/AsmWriter.cpp?rev=264884&r1=264883&r2=264884&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/AsmWriter.cpp?rev=264884&r1=264883&r2=264884&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/IR/AsmWriter.cpp (original)<br>
+++ llvm/trunk/lib/IR/AsmWriter.cpp Wed Mar 30 13:15:08 2016<br>
@@ -2203,6 +2203,22 @@ void AssemblyWriter::writeOperandBundles<br>
   Out << " ]";<br>
 }<br>
<br>
+/// Escape any backslashes in the source file (e.g. Windows paths)<br>
+/// before emitting, so that it is parsed properly by the lexer on input.<br>
+static void EscapeBackslashes(std::string Str,<br>
+                              SmallVectorImpl<char> &Res) {<br>
+  for (auto C : Str) {<br>
+    switch (C) {<br>
+    default:<br>
+      break;<br>
+    case '\\':<br>
+      Res.push_back('\\');<br>
+      break;<br>
+    }<br>
+    Res.push_back(C);<br>
+  }<br>
+}<br>
+<br></blockquote><div><br></div><div>Missed the fact that there is already a mechanism for escaping strings in this file, removing this and will use the existing helper as soon as tests finish running. </div></div><div><br></div>-- <br><div class="gmail_signature"><span style="font-family:Times;font-size:medium"><table cellspacing="0" cellpadding="0"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Teresa Johnson |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a> |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"> 408-460-2413</td></tr></tbody></table></span></div>
</div></div>