summaryrefslogtreecommitdiff
path: root/lib/System/Memory.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-27 06:15:57 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-27 06:15:57 +0000
commitce7999598a46d2df2ec60ff49e23d3478fb73815 (patch)
tree5699dc5359c7f4467b13692812e4b405f560377e /lib/System/Memory.cpp
parentb9ed2c17dac6c8f2c0058c104b5de604a222f614 (diff)
downloadllvm-ce7999598a46d2df2ec60ff49e23d3478fb73815.tar.gz
llvm-ce7999598a46d2df2ec60ff49e23d3478fb73815.tar.bz2
llvm-ce7999598a46d2df2ec60ff49e23d3478fb73815.tar.xz
For PR351:
* Consolidate implementation for Unix systems into Unix/Memory.cpp * Avoid use of symbolic link to #include platform-specific implementation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Memory.cpp')
-rw-r--r--lib/System/Memory.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/System/Memory.cpp b/lib/System/Memory.cpp
index 6aa5cbc73e..1ced1e6f0f 100644
--- a/lib/System/Memory.cpp
+++ b/lib/System/Memory.cpp
@@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/System/Memory.h"
+#include "llvm/Config/config.h"
namespace llvm {
using namespace sys;
@@ -25,6 +26,11 @@ using namespace sys;
}
// 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