1 //===- Memory.cpp - Memory Handling Support ---------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // This file defines some helpful functions for allocating memory and dealing
10 // with memory mapped files
12 //===----------------------------------------------------------------------===//
14 #include "llvm/Support/Memory.h"
15 #include "llvm/Config/llvm-config.h"
16 #include "llvm/Support/Valgrind.h"
18 // Include the platform-specific parts of this class.
20 #include "Unix/Memory.inc"
23 #include "Windows/Memory.inc"