From 8851eccaec28f25f56fab5ba5d8ae44f71729975 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 28 Feb 2008 00:18:24 +0000 Subject: From Craig Silverstein: Have Parameters point to General_options. --- gold/gold-threads.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gold/gold-threads.cc') diff --git a/gold/gold-threads.cc b/gold/gold-threads.cc index 4ebbdd8..e54d96c 100644 --- a/gold/gold-threads.cc +++ b/gold/gold-threads.cc @@ -28,6 +28,7 @@ #include #endif +#include "options.h" #include "parameters.h" #include "gold-threads.h" @@ -144,7 +145,7 @@ Lock_impl_threads::release() Lock::Lock() { - if (!parameters->threads()) + if (!parameters->options().threads()) this->lock_ = new Lock_impl_nothreads; else { @@ -258,7 +259,7 @@ Condvar_impl_threads::broadcast() Condvar::Condvar(Lock& lock) : lock_(lock) { - if (!parameters->threads()) + if (!parameters->options().threads()) this->condvar_ = new Condvar_impl_nothreads; else { -- cgit v1.1