3788abef08afc1516ddf9fb583242d8b8412cc91
[oota-llvm.git] / lib / System / Memory.cpp
1 //===- Memory.cpp - Memory Handling Support ---------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by Reid Spencer and is distributed under the
6 // University of Illinois Open Source License. See LICENSE.TXT for details.
7 //
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
19 namespace llvm {
20 using 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
37 DEFINING_FILE_FOR(SystemMemory)