From 91f68b43c326ce7b23856b8ebdb15cf59256728e Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 15 Sep 2014 19:20:10 +0000 Subject: Move emitCXXStructor to CGCXXABI. A followup patch will address the code duplication. llvm-svn: 217807 --- clang/lib/CodeGen/CodeGenModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index b9986fc..9938c24 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1404,9 +1404,9 @@ void CodeGenModule::EmitGlobalDefinition(GlobalDecl GD, llvm::GlobalValue *GV) { // Make sure to emit the definition(s) before we emit the thunks. // This is necessary for the generation of certain thunks. if (const auto *CD = dyn_cast(Method)) - emitCXXStructor(CD, getFromCtorType(GD.getCtorType())); + ABI->emitCXXStructor(CD, getFromCtorType(GD.getCtorType())); else if (const auto *DD = dyn_cast(Method)) - emitCXXStructor(DD, getFromDtorType(GD.getDtorType())); + ABI->emitCXXStructor(DD, getFromDtorType(GD.getDtorType())); else EmitGlobalFunctionDefinition(GD, GV); -- cgit v1.1