summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/include/lld/Driver/GnuLdInputGraph.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lld/include/lld/Driver/GnuLdInputGraph.h b/lld/include/lld/Driver/GnuLdInputGraph.h
index d0dd24a1f62..8473e891b9d 100644
--- a/lld/include/lld/Driver/GnuLdInputGraph.h
+++ b/lld/include/lld/Driver/GnuLdInputGraph.h
@@ -138,7 +138,9 @@ public:
return make_range(_expandElements.begin(), _expandElements.end());
}
- // Do nothing here.
+ // Linker Script will be expanded and replaced with other elements
+ // by InputGraph::normalize(), so at link time it does not exist in
+ // the tree. No need to handle this message.
void resetNextIndex() override {}
private:
OpenPOWER on IntegriCloud