[lld] r188978 - [lld] Fix unused private fields for fixing build failure on darwin
Shankar Easwaran
shankare at codeaurora.org
Wed Aug 21 18:49:16 PDT 2013
Author: shankare
Date: Wed Aug 21 20:49:16 2013
New Revision: 188978
URL: http://llvm.org/viewvc/llvm-project?rev=188978&view=rev
Log:
[lld] Fix unused private fields for fixing build failure on darwin
Modified:
lld/trunk/include/lld/Driver/GnuLDInputGraph.h
lld/trunk/include/lld/Driver/InputGraph.h
Modified: lld/trunk/include/lld/Driver/GnuLDInputGraph.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Driver/GnuLDInputGraph.h?rev=188978&r1=188977&r2=188978&view=diff
==============================================================================
--- lld/trunk/include/lld/Driver/GnuLDInputGraph.h (original)
+++ lld/trunk/include/lld/Driver/GnuLDInputGraph.h Wed Aug 21 20:49:16 2013
@@ -94,7 +94,7 @@ public:
/// \brief Dump the ELFGroup
virtual bool dump(llvm::raw_ostream &) { return true; }
-private:
+protected:
ELFLinkingContext &_elfLinkingContext;
};
Modified: lld/trunk/include/lld/Driver/InputGraph.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Driver/InputGraph.h?rev=188978&r1=188977&r2=188978&view=diff
==============================================================================
--- lld/trunk/include/lld/Driver/InputGraph.h (original)
+++ lld/trunk/include/lld/Driver/InputGraph.h Wed Aug 21 20:49:16 2013
@@ -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;
More information about the llvm-commits
mailing list