aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/GlobalValue.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-20 00:24:58 +0000
committerOwen Anderson <resistor@mac.com>2009-06-20 00:24:58 +0000
commit04fb7c36a9977127f32558dc01c39a9c2388bc39 (patch)
treeca25bb398da7dc1232611d29ce1d1b301341dfe0 /include/llvm/GlobalValue.h
parentd5fb7906130989a579d1bfe4490b414331e94fee (diff)
downloadexternal_llvm-04fb7c36a9977127f32558dc01c39a9c2388bc39.tar.gz
external_llvm-04fb7c36a9977127f32558dc01c39a9c2388bc39.tar.bz2
external_llvm-04fb7c36a9977127f32558dc01c39a9c2388bc39.zip
Revert r73790, and replace it with a significantly less ugly solution. Rather than trying to make the global reader-writer lock work,
create separate recursive mutexes for each value map. The recursive-ness fixes the double-acquiring issue, which having one per ValueMap lets us continue to maintain some concurrency. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/GlobalValue.h')
-rw-r--r--include/llvm/GlobalValue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/GlobalValue.h b/include/llvm/GlobalValue.h
index 934d082914..3b7f67d5d0 100644
--- a/include/llvm/GlobalValue.h
+++ b/include/llvm/GlobalValue.h
@@ -172,7 +172,7 @@ public:
virtual bool isNullValue() const { return false; }
/// Override from Constant class.
- virtual void destroyConstant(bool locked = true);
+ virtual void destroyConstant();
/// isDeclaration - Return true if the primary definition of this global
/// value is outside of the current translation unit...