blob: a0aa5432688ea01a1ca865099ec44c45aab4de7f [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001//===- Memory.cpp - Memory Handling Support ---------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner081ce942007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007//
8//===----------------------------------------------------------------------===//
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"
16#include "llvm/Config/config.h"
17#include "llvm/System/IncludeFile.h"
18
19namespace llvm {
20using namespace sys;
21
22//===----------------------------------------------------------------------===//
23//=== WARNING: Implementation here must contain only TRULY operating system
24//=== independent code.
25//===----------------------------------------------------------------------===//
26
27}
28
29// Include the platform-specific parts of this class.
30#ifdef LLVM_ON_UNIX
31#include "Unix/Memory.inc"
32#endif
33#ifdef LLVM_ON_WIN32
34#include "Win32/Memory.inc"
35#endif
36
37DEFINING_FILE_FOR(SystemMemory)