diff options
author | Anders Carlsson <andersca@mac.com> | 2011-02-05 18:48:55 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-02-05 18:48:55 +0000 |
commit | bbfd5babab059af14eed20b63b2aabedaa6a6ac7 (patch) | |
tree | 2da379aa052b750661447722dc38c5ca7024ac40 /lib/CodeGen/CodeGenModule.h | |
parent | a87dbcc04987ebf91adec3e00ac5e1548af6d865 (diff) |
Pass a 'ForVTable' flag to GetAddrOfThunk and pass it along to GetOrCreateLLVMFunction so that we
won't assert when building a thunk for an implicit virtual member function that is not marked used.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124967 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | lib/CodeGen/CodeGenModule.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 1ed56d5b92..7b6e12358d 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -325,7 +325,8 @@ public: llvm::Constant *GetAddrOfRTTIDescriptor(QualType Ty, bool ForEH = false); /// GetAddrOfThunk - Get the address of the thunk for the given global decl. - llvm::Constant *GetAddrOfThunk(GlobalDecl GD, const ThunkInfo &Thunk); + llvm::Constant *GetAddrOfThunk(GlobalDecl GD, const ThunkInfo &Thunk, + bool ForVTable); /// GetWeakRefReference - Get a reference to the target of VD. llvm::Constant *GetWeakRefReference(const ValueDecl *VD); |