| Reid Spencer | 566ac28 | 2004-09-11 04:59:30 +0000 | [diff] [blame] | 1 | //===- Memory.cpp - Memory Handling Support ---------------------*- C++ -*-===// | 
| Misha Brukman | 10468d8 | 2005-04-21 22:55:34 +0000 | [diff] [blame] | 2 | // | 
| Reid Spencer | 566ac28 | 2004-09-11 04:59:30 +0000 | [diff] [blame] | 3 | //                     The LLVM Compiler Infrastructure | 
|  | 4 | // | 
| Chris Lattner | f3ebc3f | 2007-12-29 20:36:04 +0000 | [diff] [blame] | 5 | // This file is distributed under the University of Illinois Open Source | 
|  | 6 | // License. See LICENSE.TXT for details. | 
| Misha Brukman | 10468d8 | 2005-04-21 22:55:34 +0000 | [diff] [blame] | 7 | // | 
| Reid Spencer | 566ac28 | 2004-09-11 04:59:30 +0000 | [diff] [blame] | 8 | //===----------------------------------------------------------------------===// | 
|  | 9 | // | 
|  | 10 | // This file defines some helpful functions for allocating memory and dealing | 
|  | 11 | // with memory mapped files | 
|  | 12 | // | 
|  | 13 | //===----------------------------------------------------------------------===// | 
|  | 14 |  | 
| Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 15 | #include "llvm/Support/Memory.h" | 
| Nico Weber | 432a388 | 2018-04-30 14:59:11 +0000 | [diff] [blame] | 16 | #include "llvm/Config/llvm-config.h" | 
| Chandler Carruth | ed0881b | 2012-12-03 16:50:05 +0000 | [diff] [blame] | 17 | #include "llvm/Support/Valgrind.h" | 
| Reid Spencer | 566ac28 | 2004-09-11 04:59:30 +0000 | [diff] [blame] | 18 |  | 
| Reid Spencer | 566ac28 | 2004-09-11 04:59:30 +0000 | [diff] [blame] | 19 | // Include the platform-specific parts of this class. | 
| Reid Spencer | 71383fb | 2004-12-27 06:15:57 +0000 | [diff] [blame] | 20 | #ifdef LLVM_ON_UNIX | 
| Reid Spencer | c892a0d | 2005-01-09 23:29:00 +0000 | [diff] [blame] | 21 | #include "Unix/Memory.inc" | 
| Reid Spencer | 71383fb | 2004-12-27 06:15:57 +0000 | [diff] [blame] | 22 | #endif | 
| Nico Weber | 712e8d2 | 2018-04-29 00:45:03 +0000 | [diff] [blame] | 23 | #ifdef _WIN32 | 
| Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 24 | #include "Windows/Memory.inc" | 
| Reid Spencer | 71383fb | 2004-12-27 06:15:57 +0000 | [diff] [blame] | 25 | #endif |