diff options
author | Owen Anderson <resistor@mac.com> | 2009-08-19 00:37:02 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-08-19 00:37:02 +0000 |
commit | ba43a385a817d7f59e528a744dc40e44317ec739 (patch) | |
tree | 24c44eff556d950b06fac6a988cea428bc1a3a47 /include/llvm/Support | |
parent | ecc67e2e1b2c13c99427510fff71d598086eb309 (diff) | |
download | external_llvm-ba43a385a817d7f59e528a744dc40e44317ec739.zip external_llvm-ba43a385a817d7f59e528a744dc40e44317ec739.tar.gz external_llvm-ba43a385a817d7f59e528a744dc40e44317ec739.tar.bz2 |
Privatize part of the leak detector mechanism, which turned out to be heavily contended
when trying to run opt in parallel. This lets parallel opt crunch 403.gcc in about a third
of the time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79387 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/LeakDetector.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Support/LeakDetector.h b/include/llvm/Support/LeakDetector.h index 8d74ac6..7dbfdbf 100644 --- a/include/llvm/Support/LeakDetector.h +++ b/include/llvm/Support/LeakDetector.h @@ -56,9 +56,9 @@ struct LeakDetector { /// The specified message will be printed indicating when the check was /// performed. /// - static void checkForGarbage(const std::string &Message) { + static void checkForGarbage(LLVMContext &C, const std::string &Message) { #ifndef NDEBUG - checkForGarbageImpl(Message); + checkForGarbageImpl(C, Message); #endif } @@ -83,7 +83,7 @@ private: static void removeGarbageObjectImpl(const Value *Object); static void addGarbageObjectImpl(void *Object); static void removeGarbageObjectImpl(void *Object); - static void checkForGarbageImpl(const std::string &Message); + static void checkForGarbageImpl(LLVMContext &C, const std::string &Message); }; } // End llvm namespace |