diff options
author | Anders Carlsson <andersca@mac.com> | 2011-02-05 04:35:53 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-02-05 04:35:53 +0000 |
commit | 3c23948481d8319f26f860dc0dad1f4d4d7f1037 (patch) | |
tree | 3af24accd8396a246770064218271002899389d9 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 43dff0f4b47473dfecdbdb252567969686bcdeba (diff) | |
download | llvm-3c23948481d8319f26f860dc0dad1f4d4d7f1037.zip llvm-3c23948481d8319f26f860dc0dad1f4d4d7f1037.tar.gz llvm-3c23948481d8319f26f860dc0dad1f4d4d7f1037.tar.bz2 |
Re-land r124768, with a fix for PR9130.
We now emit everything except unused implicit virtual member functions when building the vtable.
llvm-svn: 124935
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 39117c2..1ed56d5b 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -317,7 +317,8 @@ public: /// non-null, then this function will use the specified type if it has to /// create it. llvm::Constant *GetAddrOfFunction(GlobalDecl GD, - const llvm::Type *Ty = 0); + const llvm::Type *Ty = 0, + bool ForVTable = false); /// GetAddrOfRTTIDescriptor - Get the address of the RTTI descriptor /// for the given type. @@ -543,7 +544,8 @@ private: llvm::Constant *GetOrCreateLLVMFunction(llvm::StringRef MangledName, const llvm::Type *Ty, - GlobalDecl D); + GlobalDecl D, + bool ForVTable); llvm::Constant *GetOrCreateLLVMGlobal(llvm::StringRef MangledName, const llvm::PointerType *PTy, const VarDecl *D, |