Return dir separator as per platform.

llvm-svn: 75119
This commit is contained in:
Sanjiv Gupta 2009-07-09 08:17:55 +00:00
parent 212c0506cd
commit 772924295d
1 changed files with 4 additions and 0 deletions

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 {