summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-09-15 18:46:13 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-09-15 18:46:13 +0000
commit02b77f4248815b31e711e506bfd8c440ddbd9ad1 (patch)
treee2d40cc7bdd54a700d95dd601c516c0418909a16 /clang/lib/CodeGen/CodeGenModule.cpp
parentd759fe57643ed07e3b4cec9683be9cfca2641db9 (diff)
downloadbcm5719-llvm-02b77f4248815b31e711e506bfd8c440ddbd9ad1.tar.gz
bcm5719-llvm-02b77f4248815b31e711e506bfd8c440ddbd9ad1.zip
Create a emitCXXStructor function and make the existing emitCXXConstructor and
emitCXXDestructor static helpers. A next patch will make it a helper in CGCXXABI. llvm-svn: 217804
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 7ea787db376..b9986fc1795 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<CXXConstructorDecl>(Method))
- EmitCXXConstructor(CD, GD.getCtorType());
+ emitCXXStructor(CD, getFromCtorType(GD.getCtorType()));
else if (const auto *DD = dyn_cast<CXXDestructorDecl>(Method))
- EmitCXXDestructor(DD, GD.getDtorType());
+ emitCXXStructor(DD, getFromDtorType(GD.getDtorType()));
else
EmitGlobalFunctionDefinition(GD, GV);
OpenPOWER on IntegriCloud