projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6325b9
)
Tweak CrashRecoveryContext::GetCurrent() to return quickly if 'gCrsahRecoveryEnabled...
author
Ted Kremenek
<kremenek@apple.com>
Sat, 19 Mar 2011 00:59:33 +0000
(
00:59
+0000)
committer
Ted Kremenek
<kremenek@apple.com>
Sat, 19 Mar 2011 00:59:33 +0000
(
00:59
+0000)
the performance sensitive case where we are compiling code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127928
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/CrashRecoveryContext.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/CrashRecoveryContext.cpp
b/lib/Support/CrashRecoveryContext.cpp
index e190051e6dbe1b6793da0de79c07c1d00920e773..d4e21a3a82672b82175ad91fad1b89a246079b03 100644
(file)
--- a/
lib/Support/CrashRecoveryContext.cpp
+++ b/
lib/Support/CrashRecoveryContext.cpp
@@
-74,6
+74,9
@@
CrashRecoveryContext::~CrashRecoveryContext() {
}
CrashRecoveryContext *CrashRecoveryContext::GetCurrent() {
+ if (!gCrashRecoveryEnabled)
+ return 0;
+
const CrashRecoveryContextImpl *CRCI = CurrentContext.get();
if (!CRCI)
return 0;