blob: f9a4903ad015781d9e1435beac90963581761119 [file] [log] [blame]
Reid Spencer566ac282004-09-11 04:59:30 +00001//===- Memory.cpp - Memory Handling Support ---------------------*- C++ -*-===//
Misha Brukman10468d82005-04-21 22:55:34 +00002//
Reid Spencer566ac282004-09-11 04:59:30 +00003// The LLVM Compiler Infrastructure
4//
Chris Lattnerf3ebc3f2007-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 Brukman10468d82005-04-21 22:55:34 +00007//
Reid Spencer566ac282004-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
Michael J. Spencer447762d2010-11-29 18:16:10 +000015#include "llvm/Support/Memory.h"
Reid Spencer71383fb2004-12-27 06:15:57 +000016#include "llvm/Config/config.h"
Chandler Carruthed0881b2012-12-03 16:50:05 +000017#include "llvm/Support/Valgrind.h"
Reid Spencer566ac282004-09-11 04:59:30 +000018
Reid Spencer566ac282004-09-11 04:59:30 +000019// Include the platform-specific parts of this class.
Reid Spencer71383fb2004-12-27 06:15:57 +000020#ifdef LLVM_ON_UNIX
Reid Spencerc892a0d2005-01-09 23:29:00 +000021#include "Unix/Memory.inc"
Reid Spencer71383fb2004-12-27 06:15:57 +000022#endif
23#ifdef LLVM_ON_WIN32
Michael J. Spencer447762d2010-11-29 18:16:10 +000024#include "Windows/Memory.inc"
Reid Spencer71383fb2004-12-27 06:15:57 +000025#endif