Add a public accessor for GlobalCtors in CodeGenModule
authorKeno Fischer <kfischer@college.harvard.edu>
Tue, 30 Dec 2014 08:12:39 +0000 (08:12 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Tue, 30 Dec 2014 08:12:39 +0000 (08:12 +0000)
commit76f4ab067d7416b4c726d022ae81429d78aa8a10
tree176df4f9390d912f49823c43fa6682c588c7927b
parent4750dd18ea1bc8b3902474de8ad1576cc8e644a9
Add a public accessor for GlobalCtors in CodeGenModule

Summary:
In a JIT context it is useful to be able to access the GlobalCtors
and especially clear them once they have been emitted and called.
This adds a public method to be able to access the list.

Subscribers: yaron.keren, cfe-commits

Differential Revision: http://reviews.llvm.org/D6790

llvm-svn: 224982
clang/lib/CodeGen/CodeGenModule.h