summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-08-19 17:07:46 +0000
committerOwen Anderson <resistor@mac.com>2009-08-19 17:07:46 +0000
commitc34ebf65af0139eaf5cb0969fabcd32c0b6e1710 (patch)
tree477d2e09fc8965df7cafc3617180590d000ff7a4 /include
parentde95c1b88be44d4af916af8fba9d7940b7e98e32 (diff)
downloadllvm-c34ebf65af0139eaf5cb0969fabcd32c0b6e1710.tar.gz
llvm-c34ebf65af0139eaf5cb0969fabcd32c0b6e1710.tar.bz2
llvm-c34ebf65af0139eaf5cb0969fabcd32c0b6e1710.tar.xz
Reapply my less-lock-contention-in-leak-detector patch, now with new files
actually added. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79429 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/LeakDetector.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Support/LeakDetector.h b/include/llvm/Support/LeakDetector.h
index 8d74ac663b..7dbfdbf3d5 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