blob: a0aa5432688ea01a1ca865099ec44c45aab4de7f [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//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// 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 Spencer7107c3b2006-07-26 16:18:00 +000017#include "llvm/System/IncludeFile.h"
Reid Spencercbad7012004-09-11 04:59:30 +000018
19namespace llvm {
20using namespace sys;
21
22//===----------------------------------------------------------------------===//
23//=== WARNING: Implementation here must contain only TRULY operating system
Misha Brukmanf976c852005-04-21 22:55:34 +000024//=== independent code.
Reid Spencercbad7012004-09-11 04:59:30 +000025//===----------------------------------------------------------------------===//
26
27}
28
29// Include the platform-specific parts of this class.
Reid Spencerce799952004-12-27 06:15:57 +000030#ifdef LLVM_ON_UNIX
Reid Spencerbccc8ab2005-01-09 23:29:00 +000031#include "Unix/Memory.inc"
Reid Spencerce799952004-12-27 06:15:57 +000032#endif
33#ifdef LLVM_ON_WIN32
Reid Spencerbccc8ab2005-01-09 23:29:00 +000034#include "Win32/Memory.inc"
Reid Spencerce799952004-12-27 06:15:57 +000035#endif
Reid Spencercbad7012004-09-11 04:59:30 +000036
Reid Spencer7107c3b2006-07-26 16:18:00 +000037DEFINING_FILE_FOR(SystemMemory)