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

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



Changes in directory llvm/lib/System:

TimeValue.cpp updated: 1.2 -> 1.3
---
Log message:

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


---
Diffs of the changes:  (+8 -2)

Index: llvm/lib/System/TimeValue.cpp
diff -u llvm/lib/System/TimeValue.cpp:1.2 llvm/lib/System/TimeValue.cpp:1.3
--- llvm/lib/System/TimeValue.cpp:1.2	Sun Nov 14 16:06:18 2004
+++ llvm/lib/System/TimeValue.cpp	Mon Dec 27 00:16:38 2004
@@ -11,7 +11,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <llvm/System/TimeValue.h>
+#include "llvm/System/TimeValue.h"
+#include "llvm/Config/config.h"
 
 namespace llvm {
 using namespace sys;
@@ -48,6 +49,11 @@
 }
 
 /// Include the platform specific portion of TimeValue class
-#include "platform/TimeValue.cpp"
+#ifdef LLVM_ON_UNIX
+#include "Unix/TimeValue.cpp"
+#endif
+#ifdef LLVM_ON_WIN32
+#include "Win32/TimeValue.cpp"
+#endif
 
 // vim: sw=2 smartindent smarttab tw=80 autoindent expandtab






More information about the llvm-commits mailing list