From d232438f542fa8b2e6a0fa237ac39d6475eb153f Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 20 Sep 2004 04:13:43 +0000 Subject: [PATCH] Put in a #error in the event that we don't have an mmap that can map a file into memor. This is just a reminder that the ReadFileIntoAddressSpace function needs to be properly converted to lib/System and implemented via read/write if there's no mmap of file support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16428 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/FileUtilities.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Support/FileUtilities.cpp b/lib/Support/FileUtilities.cpp index 6829f155b8e..3f2f97b22e8 100644 --- a/lib/Support/FileUtilities.cpp +++ b/lib/Support/FileUtilities.cpp @@ -296,6 +296,7 @@ void *llvm::ReadFileIntoAddressSpace(const std::string &Filename, return Buffer; #else // FIXME: implement with read/write +#error Unimplemented ReadFileIntoAddressSpace - need to use read/write. return 0; #endif }