1 //===- Memory.cpp - Memory Handling Support ---------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 // 9 // This file defines some helpful functions for allocating memory and dealing 10 // with memory mapped files 11 // 12 //===----------------------------------------------------------------------===// 13 14 #include "llvm/Support/Memory.h" 15 #include "llvm/Config/llvm-config.h" 16 #include "llvm/Support/Valgrind.h" 17 18 // Include the platform-specific parts of this class. 19 #ifdef LLVM_ON_UNIX 20 #include "Unix/Memory.inc" 21 #endif 22 #ifdef _WIN32 23 #include "Windows/Memory.inc" 24 #endif 25