forked from OSchip/llvm-project
Eli, I copied my code from this code... Let's fix the souce of the bad idea!
Thanks. llvm-svn: 90458
This commit is contained in:
parent
daea8420e9
commit
cdeb800152
|
@ -318,12 +318,9 @@ public:
|
|||
llvm::Constant *WrapAddrOf(GlobalDecl GD) {
|
||||
const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
|
||||
|
||||
if (const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(MD))
|
||||
return wrap(CGM.GetAddrOfCXXDestructor(Dtor, GD.getDtorType()));
|
||||
|
||||
const llvm::Type *Ty = CGM.getTypes().GetFunctionTypeForVtable(MD);
|
||||
|
||||
return wrap(CGM.GetAddrOfFunction(MD, Ty));
|
||||
return wrap(CGM.GetAddrOfFunction(GD, Ty));
|
||||
}
|
||||
|
||||
void OverrideMethods(Path_t *Path, bool MorallyVirtual, int64_t Offset,
|
||||
|
|
Loading…
Reference in New Issue