aboutsummaryrefslogtreecommitdiff
path: root/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-10-21 10:38:59 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-10-21 10:38:59 +0000
commitdb1d9dbdd72db4254a7ff033331970ad7fa9dd41 (patch)
tree797c9adc5ce9cd23eeca7fe12860bf959ca6b956 /tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
parent2095659a8551fb222d145bc8dfa6cf5d15048e42 (diff)
Added more options to mcc16 driver.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp')
-rw-r--r--tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp b/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
index f8492ed45d..a6d2ff6b1a 100644
--- a/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
+++ b/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
@@ -10,11 +10,13 @@ namespace llvmc {
}
// Returns the platform specific directory separator via #ifdefs.
+// FIXME: This currently work on linux and windows only. It does not
+// work on other unices.
static std::string GetDirSeparator() {
-#ifdef _WIN32
- return "\\";
-#else
+#if __linux__ || __APPLE__
return "/";
+#else
+ return "\\";
#endif
}