summaryrefslogtreecommitdiffstats
path: root/lld/lib/Core/LinkingContext.cpp
diff options
context:
space:
mode:
authorShankar Easwaran <shankare@codeaurora.org>2013-10-08 15:43:48 +0000
committerShankar Easwaran <shankare@codeaurora.org>2013-10-08 15:43:48 +0000
commit7f1146c4945a3bad3dafebd39cb62b97d6fbdd53 (patch)
treeb1ca735c96b1d972510c9076d42ac5fa638e09ee /lld/lib/Core/LinkingContext.cpp
parent3f359430b3823a5c8cf8912bd356c9e7e8f5a829 (diff)
downloadbcm5719-llvm-7f1146c4945a3bad3dafebd39cb62b97d6fbdd53.tar.gz
bcm5719-llvm-7f1146c4945a3bad3dafebd39cb62b97d6fbdd53.zip
[LinkingContext] make LinkingContext non-const
llvm-svn: 192183
Diffstat (limited to 'lld/lib/Core/LinkingContext.cpp')
-rw-r--r--lld/lib/Core/LinkingContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/Core/LinkingContext.cpp b/lld/lib/Core/LinkingContext.cpp
index 5d5d34fb149..22a9ccf6e05 100644
--- a/lld/lib/Core/LinkingContext.cpp
+++ b/lld/lib/Core/LinkingContext.cpp
@@ -76,11 +76,11 @@ bool LinkingContext::createInternalFiles(
return true;
}
-void LinkingContext::setResolverState(uint32_t state) const {
+void LinkingContext::setResolverState(uint32_t state) {
_currentInputElement->setResolverState(state);
}
-ErrorOr<File &> LinkingContext::nextFile() const {
+ErrorOr<File &> LinkingContext::nextFile() {
// When nextFile() is called for the first time, _currentInputElement is not
// initialized. Initialize it with the first element of the input graph.
if (_currentInputElement == nullptr) {
OpenPOWER on IntegriCloud