@@ -460,7 +460,7 @@ void JuliaOJIT::addModule(std::unique_ptr<Module> M)
460
460
{
461
461
#ifndef JL_NDEBUG
462
462
// validate the relocations for M
463
- for (Module::global_object_iterator I = M->global_object_begin () , E = M->global_object_end (); I != E; ) {
463
+ for (Module::global_object_iterator I = M->global_objects (). begin () , E = M->global_objects (). end (); I != E; ) {
464
464
GlobalObject *F = &*I;
465
465
++I;
466
466
if (F->isDeclaration ()) {
@@ -771,7 +771,7 @@ static void jl_merge_recursive(Module *m, Module *collector)
771
771
// since the declarations may get destroyed by the jl_merge_module call.
772
772
// this is also why we copy the Name string, rather than save a StringRef
773
773
SmallVector<std::string, 8 > to_finalize;
774
- for (Module::global_object_iterator I = m->global_object_begin () , E = m->global_object_end (); I != E; ++I) {
774
+ for (Module::global_object_iterator I = m->global_objects (). begin () , E = m->global_objects (). end (); I != E; ++I) {
775
775
GlobalObject *F = &*I;
776
776
if (!F->isDeclaration ()) {
777
777
module_for_fname.erase (F->getName ());
@@ -846,7 +846,7 @@ void jl_finalize_module(Module *m, bool shadow)
846
846
{
847
847
// record the function names that are part of this Module
848
848
// so it can be added to the JIT when needed
849
- for (Module::global_object_iterator I = m->global_object_begin () , E = m->global_object_end (); I != E; ++I) {
849
+ for (Module::global_object_iterator I = m->global_objects (). begin () , E = m->global_objects (). end (); I != E; ++I) {
850
850
GlobalObject *F = &*I;
851
851
if (!F->isDeclaration ()) {
852
852
if (isa<Function>(F)) {
0 commit comments