diff options
| -rw-r--r-- | lld/include/lld/Driver/GnuLDInputGraph.h | 2 | ||||
| -rw-r--r-- | lld/include/lld/Driver/InputGraph.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lld/include/lld/Driver/GnuLDInputGraph.h b/lld/include/lld/Driver/GnuLDInputGraph.h index e70ac91c7d7..a595182b8f5 100644 --- a/lld/include/lld/Driver/GnuLDInputGraph.h +++ b/lld/include/lld/Driver/GnuLDInputGraph.h @@ -94,7 +94,7 @@ public: /// \brief Dump the ELFGroup virtual bool dump(llvm::raw_ostream &) { return true; } -private: +protected: ELFLinkingContext &_elfLinkingContext; }; diff --git a/lld/include/lld/Driver/InputGraph.h b/lld/include/lld/Driver/InputGraph.h index e6f32e586bd..9cfd1fb8da8 100644 --- a/lld/include/lld/Driver/InputGraph.h +++ b/lld/include/lld/Driver/InputGraph.h @@ -126,9 +126,9 @@ public: virtual int64_t getOrdinal() const { return _ordinal; } - virtual int64_t weight() const { return 0; } + virtual int64_t weight() const { return _weight; } - virtual void setWeight() { return; } + virtual void setWeight(int64_t weight) { _weight = weight; } /// \brief validates the Input Element virtual bool validate() = 0; |

