xref: /aosp_15_r20/external/llvm/lib/Support/Memory.cpp (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker //===- Memory.cpp - Memory Handling Support ---------------------*- C++ -*-===//
2*9880d681SAndroid Build Coastguard Worker //
3*9880d681SAndroid Build Coastguard Worker //                     The LLVM Compiler Infrastructure
4*9880d681SAndroid Build Coastguard Worker //
5*9880d681SAndroid Build Coastguard Worker // This file is distributed under the University of Illinois Open Source
6*9880d681SAndroid Build Coastguard Worker // License. See LICENSE.TXT for details.
7*9880d681SAndroid Build Coastguard Worker //
8*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===//
9*9880d681SAndroid Build Coastguard Worker //
10*9880d681SAndroid Build Coastguard Worker // This file defines some helpful functions for allocating memory and dealing
11*9880d681SAndroid Build Coastguard Worker // with memory mapped files
12*9880d681SAndroid Build Coastguard Worker //
13*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===//
14*9880d681SAndroid Build Coastguard Worker 
15*9880d681SAndroid Build Coastguard Worker #include "llvm/Support/Memory.h"
16*9880d681SAndroid Build Coastguard Worker #include "llvm/Config/config.h"
17*9880d681SAndroid Build Coastguard Worker #include "llvm/Support/Valgrind.h"
18*9880d681SAndroid Build Coastguard Worker 
19*9880d681SAndroid Build Coastguard Worker // Include the platform-specific parts of this class.
20*9880d681SAndroid Build Coastguard Worker #ifdef LLVM_ON_UNIX
21*9880d681SAndroid Build Coastguard Worker #include "Unix/Memory.inc"
22*9880d681SAndroid Build Coastguard Worker #endif
23*9880d681SAndroid Build Coastguard Worker #ifdef LLVM_ON_WIN32
24*9880d681SAndroid Build Coastguard Worker #include "Windows/Memory.inc"
25*9880d681SAndroid Build Coastguard Worker #endif
26