clang
20.0.0git
lib
CodeGen
ABIInfo.cpp
Go to the documentation of this file.
1
//===- ABIInfo.cpp --------------------------------------------------------===//
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
#include "
ABIInfo.h
"
10
#include "
ABIInfoImpl.h
"
11
12
using namespace
clang
;
13
using namespace
clang::CodeGen
;
14
15
// Pin the vtable to this file.
16
ABIInfo::~ABIInfo
() =
default
;
17
18
CGCXXABI
&
ABIInfo::getCXXABI
()
const
{
return
CGT
.
getCXXABI
(); }
19
20
ASTContext
&
ABIInfo::getContext
()
const
{
return
CGT
.
getContext
(); }
21
22
llvm::LLVMContext &
ABIInfo::getVMContext
()
const
{
23
return
CGT
.
getLLVMContext
();
24
}
25
26
const
llvm::DataLayout &
ABIInfo::getDataLayout
()
const
{
27
return
CGT
.
getDataLayout
();
28
}
29
30
const
TargetInfo
&
ABIInfo::getTarget
()
const
{
return
CGT
.
getTarget
(); }
31
32
const
CodeGenOptions
&
ABIInfo::getCodeGenOpts
()
const
{
33
return
CGT
.
getCodeGenOpts
();
34
}
35
36
bool