File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -554,14 +554,10 @@ class SILMaterializationUnit : public llvm::orc::MaterializationUnit {
554
554
// Now we must register all other public symbols defined by
555
555
// the module with the JIT
556
556
llvm::orc::SymbolFlagsMap Symbols;
557
- // Register all global objects , including global
557
+ // Register all global values , including global
558
558
// variables and functions
559
- for (const auto &Global : Module->global_objects ()) {
560
- addGlobal (Symbols, Global);
561
- }
562
- // Register all global aliases
563
- for (const auto &Global : Module->aliases ()) {
564
- addGlobal (Symbols, Global);
559
+ for (const auto &GV : Module->global_values ()) {
560
+ addGlobal (Symbols, GV);
565
561
}
566
562
// Register the symbols we have discovered with the JIT
567
563
if (auto Err = R->defineMaterializing (Symbols)) {
You can’t perform that action at this time.
0 commit comments