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 | 73f97534b04ff9c656ea4665a3c24efe21478e44 (patch) | |
tree | c528c2a1f27510856ba2b0b3028299eab6fb9113 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 36c6d2307401e4ddcc43afdb209bd41e09e0be31 (diff) | |
download | bcm5719-llvm-73f97534b04ff9c656ea4665a3c24efe21478e44.tar.gz bcm5719-llvm-73f97534b04ff9c656ea4665a3c24efe21478e44.zip |
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.
llvm-svn: 124967
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 1ed56d5b924..7b6e12358d1 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/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); |