[llvm-commits] [llvm] r75119 - /llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
Chris Lattner
clattner at apple.com
Thu Jul 9 09:36:25 PDT 2009
On Jul 9, 2009, at 1:18 AM, Sanjiv Gupta wrote:
> Author: sgupta
> Date: Thu Jul 9 03:17:55 2009
> New Revision: 75119
>
> URL: http://llvm.org/viewvc/llvm-project?rev=75119&view=rev
> Log:
> Return dir separator as per platform.
Hi Sanjiv,
This sort of stuff should go in lib/System/Path.h. Note that this is
wrong for all other unices.
-Chris
>
> Modified:
> llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/
> PluginMain.cpp
>
> Modified: llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/
> PluginMain.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp?rev=75119&r1=75118&r2=75119&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/
> PluginMain.cpp (original)
> +++ llvm/trunk/tools/llvmc/example/mcc16/plugins/PIC16Base/
> PluginMain.cpp Thu Jul 9 03:17:55 2009
> @@ -11,7 +11,11 @@
>
> // Returns the platform specific directory separator via #ifdefs.
> static std::string GetDirSeparator(void) {
> +#ifdef __linux__
> return "/";
> +#else
> + return "\\";
> +#endif
> }
>
> namespace hooks {
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list