Reid Spencer | cbad701 | 2004-09-11 04:59:30 +0000 | [diff] [blame] | 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" |
Reid Spencer | ce79995 | 2004-12-27 06:15:57 +0000 | [diff] [blame] | 16 | #include "llvm/Config/config.h" |
Reid Spencer | cbad701 | 2004-09-11 04:59:30 +0000 | [diff] [blame] | 17 | |
| 18 | namespace llvm { |
| 19 | using namespace sys; |
| 20 | |
| 21 | //===----------------------------------------------------------------------===// |
| 22 | //=== WARNING: Implementation here must contain only TRULY operating system |
| 23 | //=== independent code. |
| 24 | //===----------------------------------------------------------------------===// |
| 25 | |
| 26 | } |
| 27 | |
| 28 | // Include the platform-specific parts of this class. |
Reid Spencer | ce79995 | 2004-12-27 06:15:57 +0000 | [diff] [blame] | 29 | #ifdef LLVM_ON_UNIX |
| 30 | #include "Unix/Memory.cpp" |
| 31 | #endif |
| 32 | #ifdef LLVM_ON_WIN32 |
| 33 | #include "Win32/Memory.cpp" |
| 34 | #endif |
Reid Spencer | cbad701 | 2004-09-11 04:59:30 +0000 | [diff] [blame] | 35 | |
| 36 | // vim: sw=2 smartindent smarttab tw=80 autoindent expandtab |