[llvm-commits] CVS: llvm/lib/System/Memory.cpp
Reid Spencer
reid at x10sys.com
Sun Dec 26 22:16:10 PST 2004
Changes in directory llvm/lib/System:
Memory.cpp updated: 1.1 -> 1.2
---
Log message:
For PR351: http://llvm.cs.uiuc.edu/PR351 :
* Consolidate implementation for Unix systems into Unix/Memory.cpp
* Avoid use of symbolic link to #include platform-specific implementation.
---
Diffs of the changes: (+7 -1)
Index: llvm/lib/System/Memory.cpp
diff -u llvm/lib/System/Memory.cpp:1.1 llvm/lib/System/Memory.cpp:1.2
--- llvm/lib/System/Memory.cpp:1.1 Fri Sep 10 23:59:30 2004
+++ llvm/lib/System/Memory.cpp Mon Dec 27 00:15:57 2004
@@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/System/Memory.h"
+#include "llvm/Config/config.h"
namespace llvm {
using namespace sys;
@@ -25,6 +26,11 @@
}
// Include the platform-specific parts of this class.
-#include "platform/Memory.cpp"
+#ifdef LLVM_ON_UNIX
+#include "Unix/Memory.cpp"
+#endif
+#ifdef LLVM_ON_WIN32
+#include "Win32/Memory.cpp"
+#endif
// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab
More information about the llvm-commits
mailing list