[llvm] r288616 - Always use / as the path separator.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 3 23:27:02 PST 2016


Author: rafael
Date: Sun Dec  4 01:27:02 2016
New Revision: 288616

URL: http://llvm.org/viewvc/llvm-project?rev=288616&view=rev
Log:
Always use / as the path separator.

It is not clear if it is worth the complexity to use \ on
windows. This should fix the bots.

Modified:
    llvm/trunk/tools/llvm-ar/llvm-ar.cpp

Modified: llvm/trunk/tools/llvm-ar/llvm-ar.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ar/llvm-ar.cpp?rev=288616&r1=288615&r2=288616&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ar/llvm-ar.cpp (original)
+++ llvm/trunk/tools/llvm-ar/llvm-ar.cpp Sun Dec  4 01:27:02 2016
@@ -362,7 +362,7 @@ static void doDisplayTable(StringRef Nam
 
   if (C.getParent()->isThin()) {
     outs() << sys::path::parent_path(ArchiveName);
-    outs() << sys::path::get_separator();
+    outs() << '/';
   }
   outs() << Name << "\n";
 }




More information about the llvm-commits mailing list