aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/FileUtilities.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-09-20 04:13:43 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-09-20 04:13:43 +0000
commitd232438f542fa8b2e6a0fa237ac39d6475eb153f (patch)
tree4e61819c3311d0f7d8ec3631b01bcd8940eccef4 /lib/Support/FileUtilities.cpp
parent777ce17d357383bcd03847e6442d9f818b8dec2b (diff)
downloadexternal_llvm-d232438f542fa8b2e6a0fa237ac39d6475eb153f.zip
external_llvm-d232438f542fa8b2e6a0fa237ac39d6475eb153f.tar.gz
external_llvm-d232438f542fa8b2e6a0fa237ac39d6475eb153f.tar.bz2
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
Diffstat (limited to 'lib/Support/FileUtilities.cpp')
-rw-r--r--lib/Support/FileUtilities.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Support/FileUtilities.cpp b/lib/Support/FileUtilities.cpp
index 6829f15..3f2f97b 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
}