summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/MappedFile.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-27 06:15:43 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-27 06:15:43 +0000
commit1a7a435b492a46af553b289a42f8720f14468365 (patch)
tree4d60ee20d7b06c1da0e1715af0036a1881ddca86 /llvm/lib/System/MappedFile.cpp
parent97d4a17f0457553e3cb4dab147dc3a2103979ed1 (diff)
downloadbcm5719-llvm-1a7a435b492a46af553b289a42f8720f14468365.tar.gz
bcm5719-llvm-1a7a435b492a46af553b289a42f8720f14468365.zip
For PR351:
* Consolidate implementation for Unix systems into Unix/MappedFile.cpp * Avoid use of symbolic link to #include platform-specific implementation. llvm-svn: 19151
Diffstat (limited to 'llvm/lib/System/MappedFile.cpp')
-rw-r--r--llvm/lib/System/MappedFile.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/System/MappedFile.cpp b/llvm/lib/System/MappedFile.cpp
index 55e17012f39..6c47fbdb831 100644
--- a/llvm/lib/System/MappedFile.cpp
+++ b/llvm/lib/System/MappedFile.cpp
@@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/System/MappedFile.h"
+#include "llvm/Config/config.h"
namespace llvm {
using namespace sys;
@@ -24,6 +25,11 @@ using namespace sys;
}
// Include the platform-specific parts of this class.
-#include "platform/MappedFile.cpp"
+#ifdef LLVM_ON_UNIX
+#include "Unix/MappedFile.cpp"
+#endif
+#ifdef LLVM_ON_WIN32
+#include "Win32/MappedFile.cpp"
+#endif
// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab
OpenPOWER on IntegriCloud