For PR351:
* Consolidate implementation for Unix systems into Unix/TimeValue.cpp
* Avoid use of symbolic link to #include platform-specific implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19155 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/System/TimeValue.cpp b/lib/System/TimeValue.cpp
index 1533724..64078f6 100644
--- a/lib/System/TimeValue.cpp
+++ b/lib/System/TimeValue.cpp
@@ -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