From a3ad94edd406b9abc26493761764d4034dda69fa Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 29 Nov 2006 17:56:40 +0000 Subject: Hash tables, dynamic section, i386 PLT, gold_assert. --- gold/dirsearch.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gold/dirsearch.cc') diff --git a/gold/dirsearch.cc b/gold/dirsearch.cc index 5dec3f6..d1298d8 100644 --- a/gold/dirsearch.cc +++ b/gold/dirsearch.cc @@ -3,7 +3,6 @@ #include "gold.h" #include -#include #include #include @@ -125,7 +124,7 @@ Dir_caches::add(const char* dirname) std::pair v(dirname, cache); std::pair p = this->caches_.insert(v); - assert(p.second); + gold_assert(p.second); } } @@ -217,14 +216,14 @@ Dirsearch::add(Workqueue* workqueue, const General_options::Dir_list& list) std::string Dirsearch::find(const std::string& n1, const std::string& n2) const { - assert(!this->token_.is_blocked()); + gold_assert(!this->token_.is_blocked()); for (std::list::const_iterator p = this->directories_.begin(); p != this->directories_.end(); ++p) { Dir_cache* pdc = caches.lookup(*p); - assert(pdc != NULL); + gold_assert(pdc != NULL); if (pdc->find(n1)) return std::string(*p) + '/' + n1; if (!n2.empty() && pdc->find(n2)) -- cgit v1.1