summaryrefslogtreecommitdiff
path: root/tools/llvmc
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-07-09 08:17:55 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-07-09 08:17:55 +0000
commit44a382f894c049329b958e3f0fe4d5861e4f5aa3 (patch)
tree1b78a9a9a748bf7a8311a9c7350b7f54d47ea45a /tools/llvmc
parentac007b64ea24c81338b5f1277ee214c51bbdb1ce (diff)
Return dir separator as per platform.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc')
-rw-r--r--tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp b/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
index 21a25b3f73..151675f82a 100644
--- a/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
+++ b/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
@@ -11,7 +11,11 @@ namespace llvmc {
// Returns the platform specific directory separator via #ifdefs.
static std::string GetDirSeparator(void) {
+#ifdef __linux__
return "/";
+#else
+ return "\\";
+#endif
}
namespace hooks {