Inverse logic to increase portability.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80240 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2009-08-27 12:02:34 +00:00
parent 1eb6baa3b2
commit 6205048db1

View File

@ -10,13 +10,11 @@ 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() {
#if __linux__ || __APPLE__
return "/";
#else
#ifdef _WIN32
return "\\";
#else
return "/";
#endif
}