From 45101043eff95c4e0903c4f4f200c3158bf00d84 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 20 Sep 2004 04:13:43 +0000 Subject: 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. llvm-svn: 16428 --- llvm/lib/Support/FileUtilities.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Support/FileUtilities.cpp') diff --git a/llvm/lib/Support/FileUtilities.cpp b/llvm/lib/Support/FileUtilities.cpp index 6829f15..3f2f97b 100644 --- a/llvm/lib/Support/FileUtilities.cpp +++ b/llvm/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 } -- cgit v1.1