blob: 41b59461d393313ad8521c07771f5e973d02ba4b [file] [log] [blame]
Reid Spencer161a4592004-10-04 11:08:32 +00001//===- MappedFile.cpp - MappedFile Support ----------------------*- C++ -*-===//
Misha Brukman10468d82005-04-21 22:55:34 +00002//
Reid Spencer161a4592004-10-04 11:08:32 +00003// The LLVM Compiler Infrastructure
4//
Misha Brukman10468d82005-04-21 22:55:34 +00005// This file was developed by Reid Spencer and is distributed under the
Reid Spencer161a4592004-10-04 11:08:32 +00006// University of Illinois Open Source License. See LICENSE.TXT for details.
Misha Brukman10468d82005-04-21 22:55:34 +00007//
Reid Spencer161a4592004-10-04 11:08:32 +00008//===----------------------------------------------------------------------===//
9//
10// This file implements the mapped file concept.
11//
12//===----------------------------------------------------------------------===//
13
14#include "llvm/System/MappedFile.h"
Reid Spencer1a7a4352004-12-27 06:15:43 +000015#include "llvm/Config/config.h"
Reid Spencer161a4592004-10-04 11:08:32 +000016
17namespace llvm {
18using namespace sys;
19
20//===----------------------------------------------------------------------===//
21//=== WARNING: Implementation here must contain only TRULY operating system
Misha Brukman10468d82005-04-21 22:55:34 +000022//=== independent code.
Reid Spencer161a4592004-10-04 11:08:32 +000023//===----------------------------------------------------------------------===//
24
25}
26
27// Include the platform-specific parts of this class.
Reid Spencer1a7a4352004-12-27 06:15:43 +000028#ifdef LLVM_ON_UNIX
Reid Spencerc892a0d2005-01-09 23:29:00 +000029#include "Unix/MappedFile.inc"
Reid Spencer1a7a4352004-12-27 06:15:43 +000030#endif
31#ifdef LLVM_ON_WIN32
Reid Spencerc892a0d2005-01-09 23:29:00 +000032#include "Win32/MappedFile.inc"
Reid Spencer1a7a4352004-12-27 06:15:43 +000033#endif
Reid Spencer161a4592004-10-04 11:08:32 +000034
Reid Spencer082e2a72006-07-26 16:55:39 +000035DEFINING_FILE_FOR(SystemMappedFile)