blob: c245eedd2c161f6308f7d4cd9647980dd02a4ce0 [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"
Nico Weber432a3882018-04-30 14:59:11 +000016#include "llvm/Config/llvm-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
Nico Weber712e8d22018-04-29 00:45:03 +000023#ifdef _WIN32
Michael J. Spencer447762d2010-11-29 18:16:10 +000024#include "Windows/Memory.inc"
Reid Spencer71383fb2004-12-27 06:15:57 +000025#endif