summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
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
commit772924295d032216cf1d68cc4549bd0b21275ee3 (patch)
treea028dcbfc6bdac7cd6502f33b2ab49298b771804 /llvm/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
parent212c0506cd86be86aa5e8189931d2886f6aee94f (diff)
downloadbcm5719-llvm-772924295d032216cf1d68cc4549bd0b21275ee3.tar.gz
bcm5719-llvm-772924295d032216cf1d68cc4549bd0b21275ee3.zip
Return dir separator as per platform.
llvm-svn: 75119
Diffstat (limited to 'llvm/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp')
-rw-r--r--llvm/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp b/llvm/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
index 21a25b3f734..151675f82aa 100644
--- a/llvm/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
+++ b/llvm/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 {
OpenPOWER on IntegriCloud