summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/CoreLinkingContext.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-09-24 23:26:34 +0000
committerRui Ueyama <ruiu@google.com>2013-09-24 23:26:34 +0000
commit8db1eddc072cb606f24689f8e0a438a44ee6aa4d (patch)
treea1875b513666422131a6b38ee80aab71d13bd27c /lld/lib/ReaderWriter/CoreLinkingContext.cpp
parent3ce27103d9f95ade2a426d90d7639c4bf6fd96c3 (diff)
downloadbcm5719-llvm-8db1eddc072cb606f24689f8e0a438a44ee6aa4d.tar.gz
bcm5719-llvm-8db1eddc072cb606f24689f8e0a438a44ee6aa4d.zip
Make Driver::link and LinkingContext::validate return true on success.
This patch inverts the return value of these functions, so that they return "true" on success and "false" on failure. The meaning of boolean return value was mixed in LLD; for example, InputGraph::validate() returns true on success. With this patch they'll become consistent. CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1748 llvm-svn: 191341
Diffstat (limited to 'lld/lib/ReaderWriter/CoreLinkingContext.cpp')
-rw-r--r--lld/lib/ReaderWriter/CoreLinkingContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/CoreLinkingContext.cpp b/lld/lib/ReaderWriter/CoreLinkingContext.cpp
index 8f89f1d4a6a..fdc56ec7588 100644
--- a/lld/lib/ReaderWriter/CoreLinkingContext.cpp
+++ b/lld/lib/ReaderWriter/CoreLinkingContext.cpp
@@ -272,7 +272,7 @@ private:
CoreLinkingContext::CoreLinkingContext() {}
bool CoreLinkingContext::validateImpl(raw_ostream &diagnostics) {
- return false;
+ return true;
}
void CoreLinkingContext::addPasses(PassManager &pm) const {
OpenPOWER on IntegriCloud