I'm using clang in a JIT context where I found it useful to be able to
access the GlobalCtors and especially clear them once I have emitted
and called them. I'd like to add a public method to be able to access
the list. Thoughts?
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
That's for Julia, right?
I'm reminded of the discussion
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20140825/113355.html
other than the "we should have a more complete ModuleBuilder API instead of going CodeGenModule" the patch LGTM.
Comment Actions
Yes, this is for Julia, or more specifically, the julia C++ FFI at https://github.com/Keno/Cxx.jl. I'm not sure my project is far enough along yet to be able to say which of the codegen APIs I will end up needing, but once I get to that point I'll start a discussion on properly moving them to the public headers (if that discussion doesn't start before then).
Thanks for the LGTM, I'll go ahead and commit this then.