[llvm-commits] [llvm] r75119 - /llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
Sanjiv Gupta
sanjiv.gupta at microchip.com
Thu Jul 9 01:18:01 PDT 2009
Author: sgupta
Date: Thu Jul 9 03:17:55 2009
New Revision: 75119
URL: http://llvm.org/viewvc/llvm-project?rev=75119&view=rev
Log:
Return dir separator as per platform.
Modified:
llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
Modified: llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp?rev=75119&r1=75118&r2=75119&view=diff
==============================================================================
--- llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp (original)
+++ llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp Thu Jul 9 03:17:55 2009
@@ -11,7 +11,11 @@
// Returns the platform specific directory separator via #ifdefs.
static std::string GetDirSeparator(void) {
+#ifdef __linux__
return "/";
+#else
+ return "\\";
+#endif
}
namespace hooks {
More information about the llvm-commits
mailing list