LLVM
20.0.0git
lib
Support
MemoryBufferRef.cpp
Go to the documentation of this file.
1
//===- MemoryBufferRef.cpp - Memory Buffer Reference ----------------------===//
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 implements the MemoryBufferRef interface.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#include "
llvm/Support/MemoryBufferRef.h
"
14
#include "
llvm/Support/MemoryBuffer.h
"
15
16
using namespace
llvm
;
17
18
MemoryBufferRef::MemoryBufferRef
(
const
MemoryBuffer
&Buffer)
19
: Buffer(Buffer.getBuffer()), Identifier(Buffer.getBufferIdentifier()) {}
MemoryBufferRef.h
MemoryBuffer.h
llvm::MemoryBufferRef::MemoryBufferRef
MemoryBufferRef()=default
llvm::MemoryBuffer
This interface provides simple read-only access to a block of memory, and provides simple methods for...
Definition:
MemoryBuffer.h:51
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
Generated on Mon Oct 7 2024 03:15:59 for LLVM by
1.9.6