summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShankar Easwaran <shankare@codeaurora.org>2013-08-22 01:49:16 +0000
committerShankar Easwaran <shankare@codeaurora.org>2013-08-22 01:49:16 +0000
commit88d0d44635ef90bf1d4d189d255ad5a266cdb98d (patch)
tree6d3132647735b78c1aaae5bb54864097ed998d38
parentfd5277c0635f74bbdbb2daa3bb95e08f39db7d63 (diff)
downloadbcm5719-llvm-88d0d44635ef90bf1d4d189d255ad5a266cdb98d.tar.gz
bcm5719-llvm-88d0d44635ef90bf1d4d189d255ad5a266cdb98d.zip
[lld] Fix unused private fields for fixing build failure on darwin
llvm-svn: 188978
-rw-r--r--lld/include/lld/Driver/GnuLDInputGraph.h2
-rw-r--r--lld/include/lld/Driver/InputGraph.h4
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;
OpenPOWER on IntegriCloud