Return dir separator as per platform.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75119 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sanjiv Gupta 2009-07-09 08:17:55 +00:00
parent ac007b64ea
commit 44a382f894

View File

@ -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 {