blob: e951e3c26a1614cf1c30a9ec28b71e937658524d [file] [log] [blame]
Reid Spencercbad7012004-09-11 04:59:30 +00001//===- Memory.cpp - Memory Handling Support ---------------------*- C++ -*-===//
Misha Brukmanf976c852005-04-21 22:55:34 +00002//
Reid Spencercbad7012004-09-11 04:59:30 +00003// The LLVM Compiler Infrastructure
4//
Misha Brukmanf976c852005-04-21 22:55:34 +00005// This file was developed by Reid Spencer and is distributed under the
Reid Spencercbad7012004-09-11 04:59:30 +00006// University of Illinois Open Source License. See LICENSE.TXT for details.
Misha Brukmanf976c852005-04-21 22:55:34 +00007//
Reid Spencercbad7012004-09-11 04:59:30 +00008//===----------------------------------------------------------------------===//
9//
10// This file defines some helpful functions for allocating memory and dealing
11// with memory mapped files
12//
13//===----------------------------------------------------------------------===//
14
15#include "llvm/System/Memory.h"
Reid Spencerce799952004-12-27 06:15:57 +000016#include "llvm/Config/config.h"
Reid Spencercbad7012004-09-11 04:59:30 +000017
18namespace llvm {
19using namespace sys;
20
21//===----------------------------------------------------------------------===//
22//=== WARNING: Implementation here must contain only TRULY operating system
Misha Brukmanf976c852005-04-21 22:55:34 +000023//=== independent code.
Reid Spencercbad7012004-09-11 04:59:30 +000024//===----------------------------------------------------------------------===//
25
26}
27
28// Include the platform-specific parts of this class.
Reid Spencerce799952004-12-27 06:15:57 +000029#ifdef LLVM_ON_UNIX
Reid Spencerbccc8ab2005-01-09 23:29:00 +000030#include "Unix/Memory.inc"
Reid Spencerce799952004-12-27 06:15:57 +000031#endif
32#ifdef LLVM_ON_WIN32
Reid Spencerbccc8ab2005-01-09 23:29:00 +000033#include "Win32/Memory.inc"
Reid Spencerce799952004-12-27 06:15:57 +000034#endif
Reid Spencercbad7012004-09-11 04:59:30 +000035