File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -65,21 +65,8 @@ using namespace llvm::support::endian;
65
65
using namespace lld ;
66
66
using namespace lld ::elf;
67
67
68
- static std::optional<std::string> getLinkerScriptLocation (Ctx &ctx,
69
- const Symbol &sym) {
70
- for (SectionCommand *cmd : ctx.script ->sectionCommands )
71
- if (auto *assign = dyn_cast<SymbolAssignment>(cmd))
72
- if (assign->sym == &sym)
73
- return assign->location ;
74
- return std::nullopt;
75
- }
76
-
77
68
static void printDefinedLocation (ELFSyncStream &s, const Symbol &sym) {
78
- s << " \n >>> defined in " ;
79
- if (sym.file )
80
- return void (s << sym.file );
81
- if (std::optional<std::string> loc = getLinkerScriptLocation (s.ctx , sym))
82
- return void (s << *loc);
69
+ s << " \n >>> defined in " << sym.file ;
83
70
}
84
71
85
72
// Construct a message in the following format.
You can’t perform that action at this time.
0 commit comments