clang  5.0.0
CGCXXABI.cpp
Go to the documentation of this file.
1 //===----- CGCXXABI.cpp - Interface to C++ ABIs ---------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This provides an abstract class for C++ code generation. Concrete subclasses
11 // of this implement code generation for specific C++ ABIs.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #include "CGCXXABI.h"
16 #include "CGCleanup.h"
17 
18 using namespace clang;
19 using namespace CodeGen;
20 
22 
24  DiagnosticsEngine &Diags = CGF.CGM.getDiags();
25  unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error,
26  "cannot yet compile %0 in this ABI");
28  DiagID)
29  << S;
30 }
31 
33  // We can only copy the argument if there exists at least one trivial,
34  // non-deleted copy or move constructor.
35  return RD->canPassInRegisters();
36 }
37 
39  return llvm::Constant::getNullValue(CGM.getTypes().ConvertType(T));
40 }
41 
42 llvm::Type *
45 }
46 
48  CodeGenFunction &CGF, const Expr *E, Address This,
49  llvm::Value *&ThisPtrForCall,
50  llvm::Value *MemPtr, const MemberPointerType *MPT) {
51  ErrorUnsupportedABI(CGF, "calls through member pointers");
52 
53  ThisPtrForCall = This.getPointer();
54  const FunctionProtoType *FPT =
56  const CXXRecordDecl *RD =
57  cast<CXXRecordDecl>(MPT->getClass()->getAs<RecordType>()->getDecl());
58  llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType(
59  CGM.getTypes().arrangeCXXMethodType(RD, FPT, /*FD=*/nullptr));
60  llvm::Constant *FnPtr = llvm::Constant::getNullValue(FTy->getPointerTo());
61  return CGCallee::forDirect(FnPtr, FPT);
62 }
63 
66  Address Base, llvm::Value *MemPtr,
67  const MemberPointerType *MPT) {
68  ErrorUnsupportedABI(CGF, "loads of member pointers");
69  llvm::Type *Ty = CGF.ConvertType(MPT->getPointeeType())
70  ->getPointerTo(Base.getAddressSpace());
71  return llvm::Constant::getNullValue(Ty);
72 }
73 
75  const CastExpr *E,
76  llvm::Value *Src) {
77  ErrorUnsupportedABI(CGF, "member function pointer conversions");
78  return GetBogusMemberPointer(E->getType());
79 }
80 
82  llvm::Constant *Src) {
83  return GetBogusMemberPointer(E->getType());
84 }
85 
88  llvm::Value *L,
89  llvm::Value *R,
90  const MemberPointerType *MPT,
91  bool Inequality) {
92  ErrorUnsupportedABI(CGF, "member function pointer comparison");
93  return CGF.Builder.getFalse();
94 }
95 
98  llvm::Value *MemPtr,
99  const MemberPointerType *MPT) {
100  ErrorUnsupportedABI(CGF, "member function pointer null testing");
101  return CGF.Builder.getFalse();
102 }
103 
104 llvm::Constant *
106  return GetBogusMemberPointer(QualType(MPT, 0));
107 }
108 
111  MD->getType(), MD->getParent()->getTypeForDecl()));
112 }
113 
115  CharUnits offset) {
116  return GetBogusMemberPointer(QualType(MPT, 0));
117 }
118 
119 llvm::Constant *CGCXXABI::EmitMemberPointer(const APValue &MP, QualType MPT) {
120  return GetBogusMemberPointer(MPT);
121 }
122 
124  // Fake answer.
125  return true;
126 }
127 
129  const CXXMethodDecl *MD = cast<CXXMethodDecl>(CGF.CurGD.getDecl());
130 
131  // FIXME: I'm not entirely sure I like using a fake decl just for code
132  // generation. Maybe we can come up with a better way?
133  auto *ThisDecl = ImplicitParamDecl::Create(
134  CGM.getContext(), nullptr, MD->getLocation(),
135  &CGM.getContext().Idents.get("this"), MD->getThisType(CGM.getContext()),
137  params.push_back(ThisDecl);
138  CGF.CXXABIThisDecl = ThisDecl;
139 
140  // Compute the presumed alignment of 'this', which basically comes
141  // down to whether we know it's a complete object or not.
142  auto &Layout = CGF.getContext().getASTRecordLayout(MD->getParent());
143  if (MD->getParent()->getNumVBases() == 0 || // avoid vcall in common case
144  MD->getParent()->hasAttr<FinalAttr>() ||
145  !isThisCompleteObject(CGF.CurGD)) {
146  CGF.CXXABIThisAlignment = Layout.getAlignment();
147  } else {
148  CGF.CXXABIThisAlignment = Layout.getNonVirtualAlignment();
149  }
150 }
151 
153  /// Initialize the 'this' slot.
154  assert(getThisDecl(CGF) && "no 'this' variable for function");
155  CGF.CXXABIThisValue
157  "this");
158 }
159 
161  RValue RV, QualType ResultType) {
162  CGF.EmitReturnOfRValue(RV, ResultType);
163 }
164 
166  if (!requiresArrayCookie(expr))
167  return CharUnits::Zero();
169 }
170 
172  // BOGUS
173  return CharUnits::Zero();
174 }
175 
177  Address NewPtr,
178  llvm::Value *NumElements,
179  const CXXNewExpr *expr,
180  QualType ElementType) {
181  // Should never be called.
182  ErrorUnsupportedABI(CGF, "array cookie initialization");
183  return Address::invalid();
184 }
185 
187  QualType elementType) {
188  // If the class's usual deallocation function takes two arguments,
189  // it needs a cookie.
190  if (expr->doesUsualArrayDeleteWantSize())
191  return true;
192 
193  return elementType.isDestructedType();
194 }
195 
197  // If the class's usual deallocation function takes two arguments,
198  // it needs a cookie.
199  if (expr->doesUsualArrayDeleteWantSize())
200  return true;
201 
202  return expr->getAllocatedType().isDestructedType();
203 }
204 
206  const CXXDeleteExpr *expr, QualType eltTy,
207  llvm::Value *&numElements,
208  llvm::Value *&allocPtr, CharUnits &cookieSize) {
209  // Derive a char* in the same address space as the pointer.
210  ptr = CGF.Builder.CreateElementBitCast(ptr, CGF.Int8Ty);
211 
212  // If we don't need an array cookie, bail out early.
213  if (!requiresArrayCookie(expr, eltTy)) {
214  allocPtr = ptr.getPointer();
215  numElements = nullptr;
216  cookieSize = CharUnits::Zero();
217  return;
218  }
219 
220  cookieSize = getArrayCookieSizeImpl(eltTy);
221  Address allocAddr =
222  CGF.Builder.CreateConstInBoundsByteGEP(ptr, -cookieSize);
223  allocPtr = allocAddr.getPointer();
224  numElements = readArrayCookieImpl(CGF, allocAddr, cookieSize);
225 }
226 
228  Address ptr,
229  CharUnits cookieSize) {
230  ErrorUnsupportedABI(CGF, "reading a new[] cookie");
231  return llvm::ConstantInt::get(CGF.SizeTy, 0);
232 }
233 
234 /// Returns the adjustment, in bytes, required for the given
235 /// member-pointer operation. Returns null if no adjustment is
236 /// required.
238  assert(E->getCastKind() == CK_DerivedToBaseMemberPointer ||
239  E->getCastKind() == CK_BaseToDerivedMemberPointer);
240 
241  QualType derivedType;
242  if (E->getCastKind() == CK_DerivedToBaseMemberPointer)
243  derivedType = E->getSubExpr()->getType();
244  else
245  derivedType = E->getType();
246 
247  const CXXRecordDecl *derivedClass =
248  derivedType->castAs<MemberPointerType>()->getClass()->getAsCXXRecordDecl();
249 
250  return CGM.GetNonVirtualBaseClassOffset(derivedClass,
251  E->path_begin(),
252  E->path_end());
253 }
254 
256  // TODO: Store base specifiers in APValue member pointer paths so we can
257  // easily reuse CGM.GetNonVirtualBaseClassOffset().
258  const ValueDecl *MPD = MP.getMemberPointerDecl();
261  bool DerivedMember = MP.isMemberPointerToDerivedMember();
262  const CXXRecordDecl *RD = cast<CXXRecordDecl>(MPD->getDeclContext());
263  for (unsigned I = 0, N = Path.size(); I != N; ++I) {
264  const CXXRecordDecl *Base = RD;
265  const CXXRecordDecl *Derived = Path[I];
266  if (DerivedMember)
267  std::swap(Base, Derived);
268  ThisAdjustment +=
270  RD = Path[I];
271  }
272  if (DerivedMember)
273  ThisAdjustment = -ThisAdjustment;
274  return ThisAdjustment;
275 }
276 
277 llvm::BasicBlock *
279  const CXXRecordDecl *RD) {
281  llvm_unreachable("shouldn't be called in this ABI");
282 
283  ErrorUnsupportedABI(CGF, "complete object detection in ctor");
284  return nullptr;
285 }
286 
288  return false;
289 }
290 
291 llvm::CallInst *
293  llvm::Value *Exn) {
294  // Just call std::terminate and ignore the violating exception.
295  return CGF.EmitNounwindRuntimeCall(CGF.CGM.getTerminateFn());
296 }
297 
299  return CatchTypeInfo{nullptr, 0};
300 }
301 
302 std::vector<CharUnits> CGCXXABI::getVBPtrOffsets(const CXXRecordDecl *RD) {
303  return std::vector<CharUnits>();
304 }
CastKind getCastKind() const
Definition: Expr.h:2749
virtual llvm::Constant * EmitMemberPointer(const APValue &MP, QualType MPT)
Create a member pointer for the given member pointer constant.
Definition: CGCXXABI.cpp:119
const internal::VariadicDynCastAllOfMatcher< Stmt, Expr > expr
Matches expressions.
Definition: ASTMatchers.h:1510
A (possibly-)qualified type.
Definition: Type.h:616
DestructionKind isDestructedType() const
Returns a nonzero value if objects of this type require non-trivial work to clean up after...
Definition: Type.h:1054
virtual void EmitReturnFromThunk(CodeGenFunction &CGF, RValue RV, QualType ResultType)
Definition: CGCXXABI.cpp:160
const CGFunctionInfo & arrangeCXXMethodType(const CXXRecordDecl *RD, const FunctionProtoType *FTP, const CXXMethodDecl *MD)
Arrange the argument and result information for a call to an unknown C++ non-static member function o...
Definition: CGCall.cpp:242
const Decl * CurCodeDecl
CurCodeDecl - This is the inner-most code context, which includes blocks.
Parameter for Objective-C '_cmd' argument.
Definition: Decl.h:1392
FullSourceLoc getFullLoc(SourceLocation Loc) const
Definition: ASTContext.h:671
QualType getPointeeType() const
Definition: Type.h:2461
DiagnosticBuilder Report(SourceLocation Loc, unsigned DiagID)
Issue the message to the client.
Definition: Diagnostic.h:1205
llvm::IntegerType * Int8Ty
i8, i16, i32, and i64
bool doesUsualArrayDeleteWantSize() const
Answers whether the usual array deallocation function for the allocated type expects the size of the ...
Definition: ExprCXX.h:2033
virtual llvm::BasicBlock * EmitCtorCompleteObjectHandler(CodeGenFunction &CGF, const CXXRecordDecl *RD)
Definition: CGCXXABI.cpp:278
Address GetAddrOfLocalVar(const VarDecl *VD)
GetAddrOfLocalVar - Return the address of a local variable.
A this pointer adjustment.
Definition: ABI.h:108
QualType getThisType(ASTContext &C) const
Returns the type of the this pointer.
Definition: DeclCXX.cpp:1845
Address CreateConstInBoundsByteGEP(Address Addr, CharUnits Offset, const llvm::Twine &Name="")
Given a pointer to i8, adjust it by a given constant offset.
Definition: CGBuilder.h:227
void EmitThisParam(CodeGenFunction &CGF)
Perform prolog initialization of the parameter variable suitable for 'this' emitted by buildThisParam...
Definition: CGCXXABI.cpp:152
virtual bool requiresArrayCookie(const CXXDeleteExpr *E, QualType eltType)
Definition: CGCXXABI.cpp:186
ArrayRef< const CXXRecordDecl * > getMemberPointerPath() const
Definition: APValue.cpp:629
bool hasAttr() const
Definition: DeclBase.h:521
CodeGenFunction - This class organizes the per-function state that is used while generating LLVM code...
llvm::Type * ConvertType(QualType T)
ConvertType - Convert type T into a llvm::Type.
virtual bool isThisCompleteObject(GlobalDecl GD) const =0
Determine whether there's something special about the rules of the ABI tell us that 'this' is a compl...
static CharUnits Zero()
Zero - Construct a CharUnits quantity of zero.
Definition: CharUnits.h:53
Expr * getSubExpr()
Definition: Expr.h:2753
const Decl * getDecl() const
Definition: GlobalDecl.h:62
IdentifierTable & Idents
Definition: ASTContext.h:513
virtual llvm::Value * EmitMemberDataPointerAddress(CodeGenFunction &CGF, const Expr *E, Address Base, llvm::Value *MemPtr, const MemberPointerType *MPT)
Calculate an l-value from an object and a data member pointer.
Definition: CGCXXABI.cpp:65
Address CreateElementBitCast(Address Addr, llvm::Type *Ty, const llvm::Twine &Name="")
Cast the element type of the given address to a different type, preserving information like the align...
Definition: CGBuilder.h:150
CharUnits - This is an opaque type for sizes expressed in character units.
Definition: CharUnits.h:38
const ValueDecl * getMemberPointerDecl() const
Definition: APValue.cpp:615
const CXXRecordDecl * getParent() const
Returns the parent of this method declaration, which is the class in which this method is defined...
Definition: DeclCXX.h:2018
path_iterator path_begin()
Definition: Expr.h:2769
Concrete class used by the front-end to report problems and issues.
Definition: Diagnostic.h:147
virtual llvm::Value * EmitMemberPointerIsNotNull(CodeGenFunction &CGF, llvm::Value *MemPtr, const MemberPointerType *MPT)
Determine if a member pointer is non-null. Returns an i1.
Definition: CGCXXABI.cpp:97
CodeGenModule & CGM
Definition: CGCXXABI.h:46
llvm::Constant * getTerminateFn()
Get the declaration of std::terminate for the platform.
Definition: CGException.cpp:50
ImplicitParamDecl * getThisDecl(CodeGenFunction &CGF)
Definition: CGCXXABI.h:53
const ASTRecordLayout & getASTRecordLayout(const RecordDecl *D) const
Get or compute information about the layout of the specified record (struct/union/class) D...
CastExpr - Base class for type casts, including both implicit casts (ImplicitCastExpr) and explicit c...
Definition: Expr.h:2701
GlobalDecl CurGD
CurGD - The GlobalDecl for the current function being compiled.
bool canPassInRegisters() const
Determine whether this class has at least one trivial, non-deleted copy or move constructor.
Definition: DeclCXX.h:1379
detail::InMemoryDirectory::const_iterator I
QualType getType() const
Definition: Decl.h:589
virtual llvm::Type * ConvertMemberPointerType(const MemberPointerType *MPT)
Find the LLVM type used to represent the given member pointer type.
Definition: CGCXXABI.cpp:43
virtual bool isZeroInitializable(const MemberPointerType *MPT)
Return true if the given member pointer can be zero-initialized (in the C++ sense) with an LLVM zeroi...
Definition: CGCXXABI.cpp:123
static ImplicitParamDecl * Create(ASTContext &C, DeclContext *DC, SourceLocation IdLoc, IdentifierInfo *Id, QualType T, ImplicitParamKind ParamKind)
Create implicit parameter.
Definition: Decl.cpp:4161
Represents a prototype with parameter type info, e.g.
Definition: Type.h:3129
llvm::CallInst * EmitNounwindRuntimeCall(llvm::Value *callee, const Twine &name="")
virtual CharUnits GetArrayCookieSize(const CXXNewExpr *expr)
Returns the extra size required in order to store the array cookie for the given new-expression.
Definition: CGCXXABI.cpp:165
const TargetInfo & getTarget() const
RValue - This trivial value class is used to represent the result of an expression that is evaluated...
Definition: CGValue.h:38
bool hasConstructorVariants() const
Does this ABI have different entrypoints for complete-object and base-subobject constructors?
Definition: TargetCXXABI.h:222
llvm::Value * getPointer() const
Definition: Address.h:38
const Type * getTypeForDecl() const
Definition: Decl.h:2663
ValueDecl - Represent the declaration of a variable (in which case it is an lvalue) a function (in wh...
Definition: Decl.h:580
Expr - This represents one expression.
Definition: Expr.h:105
static Address invalid()
Definition: Address.h:35
virtual CharUnits getArrayCookieSizeImpl(QualType elementType)
Returns the extra size required in order to store the array cookie for the given type.
Definition: CGCXXABI.cpp:171
virtual void ReadArrayCookie(CodeGenFunction &CGF, Address Ptr, const CXXDeleteExpr *expr, QualType ElementType, llvm::Value *&NumElements, llvm::Value *&AllocPtr, CharUnits &CookieSize)
Reads the array cookie associated with the given pointer, if it has one.
Definition: CGCXXABI.cpp:205
bool isMemberPointerToDerivedMember() const
Definition: APValue.cpp:622
static CGCallee forDirect(llvm::Constant *functionPtr, const CGCalleeInfo &abstractInfo=CGCalleeInfo())
Definition: CGCall.h:125
DeclContext * getDeclContext()
Definition: DeclBase.h:416
CharUnits getBaseClassOffset(const CXXRecordDecl *Base) const
getBaseClassOffset - Get the offset, in chars, for the given base class.
Definition: RecordLayout.h:219
ASTContext & getContext() const
QualType getAllocatedType() const
Definition: ExprCXX.h:1841
virtual llvm::Constant * EmitMemberFunctionPointer(const CXXMethodDecl *MD)
Create a member pointer for the given method.
Definition: CGCXXABI.cpp:109
void ErrorUnsupportedABI(CodeGenFunction &CGF, StringRef S)
Issue a diagnostic about unsupported features in the ABI.
Definition: CGCXXABI.cpp:23
GlobalDecl - represents a global declaration.
Definition: GlobalDecl.h:29
The l-value was considered opaque, so the alignment was determined from a type.
virtual llvm::Value * EmitMemberPointerConversion(CodeGenFunction &CGF, const CastExpr *E, llvm::Value *Src)
Perform a derived-to-base, base-to-derived, or bitcast member pointer conversion. ...
Definition: CGCXXABI.cpp:74
virtual bool NeedsVTTParameter(GlobalDecl GD)
Return whether the given global decl needs a VTT parameter.
Definition: CGCXXABI.cpp:287
ASTContext & getContext() const
IdentifierInfo & get(StringRef Name)
Return the identifier token info for the specified named identifier.
bool canCopyArgument(const CXXRecordDecl *RD) const
Returns true if C++ allows us to copy the memory of an object of type RD when it is passed as an argu...
Definition: CGCXXABI.cpp:32
Represents a new-expression for memory allocation and constructor calls, e.g: "new CXXNewExpr(foo)"...
Definition: ExprCXX.h:1780
Represents a static or instance method of a struct/union/class.
Definition: DeclCXX.h:1903
virtual CatchTypeInfo getCatchAllTypeInfo()
Definition: CGCXXABI.cpp:298
An aligned address.
Definition: Address.h:25
unsigned getCustomDiagID(Level L, const char(&FormatString)[N])
Return an ID for a diagnostic with the specified format string and level.
Definition: Diagnostic.h:689
All available information about a concrete callee.
Definition: CGCall.h:66
unsigned getAddressSpace() const
Return the address space that this address resides in.
Definition: Address.h:57
virtual llvm::Constant * EmitNullMemberPointer(const MemberPointerType *MPT)
Create a null member pointer of the given type.
Definition: CGCXXABI.cpp:105
The MS C++ ABI needs a pointer to RTTI data plus some flags to describe the type of a catch handler...
Definition: CGCleanup.h:38
virtual Address InitializeArrayCookie(CodeGenFunction &CGF, Address NewPtr, llvm::Value *NumElements, const CXXNewExpr *expr, QualType ElementType)
Initialize the array cookie for the given allocation.
Definition: CGCXXABI.cpp:176
llvm::Constant * getMemberPointerAdjustment(const CastExpr *E)
A utility method for computing the offset required for the given base-to-derived or derived-to-base m...
Definition: CGCXXABI.cpp:237
FunctionArgList - Type for representing both the decl and type of parameters to a function...
Definition: CGCall.h:276
virtual llvm::Value * EmitMemberPointerComparison(CodeGenFunction &CGF, llvm::Value *L, llvm::Value *R, const MemberPointerType *MPT, bool Inequality)
Emit a comparison between two member pointers. Returns an i1.
Definition: CGCXXABI.cpp:87
QualType getType() const
Definition: Expr.h:127
QualType getMemberPointerType(QualType T, const Type *Cls) const
Return the uniqued reference to the type for a member pointer to the specified type in the specified ...
Represents a delete expression for memory deallocation and destructor calls, e.g. ...
Definition: ExprCXX.h:1992
virtual llvm::Value * readArrayCookieImpl(CodeGenFunction &IGF, Address ptr, CharUnits cookieSize)
Reads the array cookie for an allocation which is known to have one.
Definition: CGCXXABI.cpp:227
llvm::LoadInst * CreateLoad(Address Addr, const llvm::Twine &Name="")
Definition: CGBuilder.h:70
void buildThisParam(CodeGenFunction &CGF, FunctionArgList &Params)
Build a parameter variable suitable for 'this'.
Definition: CGCXXABI.cpp:128
detail::InMemoryDirectory::const_iterator E
A pointer to member type per C++ 8.3.3 - Pointers to members.
Definition: Type.h:2442
path_iterator path_end()
Definition: Expr.h:2770
A helper class that allows the use of isa/cast/dyncast to detect TagType objects of structs/unions/cl...
Definition: Type.h:3784
QualType getPointerDiffType() const
Return the unique type for "ptrdiff_t" (C99 7.17) defined in <stddef.h>.
const T * getAs() const
Member-template getAs<specific type>'.
Definition: Type.h:6042
ASTContext & getContext() const
Definition: CGCXXABI.h:80
virtual llvm::Constant * EmitMemberDataPointer(const MemberPointerType *MPT, CharUnits offset)
Create a member pointer for the given field.
Definition: CGCXXABI.cpp:114
llvm::Constant * GetNonVirtualBaseClassOffset(const CXXRecordDecl *ClassDecl, CastExpr::path_const_iterator PathBegin, CastExpr::path_const_iterator PathEnd)
Returns the offset from a derived class to a class.
Definition: CGClass.cpp:175
CXXRecordDecl * getAsCXXRecordDecl() const
Retrieves the CXXRecordDecl that this type refers to, either because the type is a RecordType or beca...
Definition: Type.cpp:1548
APValue - This class implements a discriminated union of [uninitialized] [APSInt] [APFloat]...
Definition: APValue.h:38
const Type * getClass() const
Definition: Type.h:2475
DiagnosticsEngine & getDiags() const
Represents a C++ struct/union/class.
Definition: DeclCXX.h:267
TargetCXXABI getCXXABI() const
Get the C++ ABI currently in use.
Definition: TargetInfo.h:861
llvm::Type * ConvertType(QualType T)
bool doesUsualArrayDeleteWantSize() const
Answers whether the usual array deallocation function for the allocated type expects the size of the ...
Definition: ExprCXX.h:1931
virtual llvm::CallInst * emitTerminateForUnexpectedException(CodeGenFunction &CGF, llvm::Value *Exn)
Definition: CGCXXABI.cpp:292
virtual CGCallee EmitLoadOfMemberFunctionPointer(CodeGenFunction &CGF, const Expr *E, Address This, llvm::Value *&ThisPtrForCall, llvm::Value *MemPtr, const MemberPointerType *MPT)
Load a member function from an object and a member function pointer.
Definition: CGCXXABI.cpp:47
virtual std::vector< CharUnits > getVBPtrOffsets(const CXXRecordDecl *RD)
Gets the offsets of all the virtual base pointers in a given class.
Definition: CGCXXABI.cpp:302
SourceLocation getLocation() const
Definition: DeclBase.h:407
unsigned getNumVBases() const
Retrieves the number of virtual base classes of this class.
Definition: DeclCXX.h:752
llvm::Constant * GetBogusMemberPointer(QualType T)
Get a null value for unsupported member pointers.
Definition: CGCXXABI.cpp:38
CharUnits getMemberPointerPathAdjustment(const APValue &MP)
Computes the non-virtual adjustment needed for a member pointer conversion along an inheritance path ...
Definition: CGCXXABI.cpp:255
llvm::FunctionType * GetFunctionType(const CGFunctionInfo &Info)
GetFunctionType - Get the LLVM function type for.
Definition: CGCall.cpp:1519