[llvm-commits] CVS: llvm/lib/System/Program.cpp

Reid Spencer reid at x10sys.com
Sun Dec 26 22:16:37 PST 2004



Changes in directory llvm/lib/System:

Program.cpp updated: 1.1 -> 1.2
---
Log message:

For PR351: http://llvm.cs.uiuc.edu/PR351 :
* Consolidate implementation for Unix systems into Unix/Program.cpp
* Avoid use of symbolic link to #include platform-specific implementation.


---
Diffs of the changes:  (+7 -1)

Index: llvm/lib/System/Program.cpp
diff -u llvm/lib/System/Program.cpp:1.1 llvm/lib/System/Program.cpp:1.2
--- llvm/lib/System/Program.cpp:1.1	Sun Aug 29 14:20:41 2004
+++ llvm/lib/System/Program.cpp	Mon Dec 27 00:16:24 2004
@@ -12,6 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/System/Program.h"
+#include "llvm/Config/config.h"
 
 namespace llvm {
 using namespace sys;
@@ -24,6 +25,11 @@
 }
 
 // Include the platform-specific parts of this class.
-#include "platform/Program.cpp"
+#ifdef LLVM_ON_UNIX
+#include "Unix/Program.cpp"
+#endif
+#ifdef LLVM_ON_WIN32
+#include "Win32/Program.cpp"
+#endif
 
 // vim: sw=2 smartindent smarttab tw=80 autoindent expandtab






More information about the llvm-commits mailing list