[Lldb-commits] [lldb] r157652 - /lldb/trunk/source/Expression/IRDynamicChecks.cpp
Sean Callanan
scallanan at apple.com
Tue May 29 16:46:46 PDT 2012
Author: spyffe
Date: Tue May 29 18:46:46 2012
New Revision: 157652
URL: http://llvm.org/viewvc/llvm-project?rev=157652&view=rev
Log:
Insert dynamic checks only if the appropriate
checker functions exist.
Modified:
lldb/trunk/source/Expression/IRDynamicChecks.cpp
Modified: lldb/trunk/source/Expression/IRDynamicChecks.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRDynamicChecks.cpp?rev=157652&r1=157651&r2=157652&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRDynamicChecks.cpp (original)
+++ lldb/trunk/source/Expression/IRDynamicChecks.cpp Tue May 29 18:46:46 2012
@@ -611,22 +611,28 @@
return false;
}
- ValidPointerChecker vpc(M, m_checker_functions);
-
- if (!vpc.Inspect(*function))
- return false;
-
- if (!vpc.Instrument())
- return false;
-
- ObjcObjectChecker ooc(M, m_checker_functions);
-
- if (!ooc.Inspect(*function))
- return false;
+ if (m_checker_functions.m_valid_pointer_check.get())
+ {
+ ValidPointerChecker vpc(M, m_checker_functions);
+
+ if (!vpc.Inspect(*function))
+ return false;
+
+ if (!vpc.Instrument())
+ return false;
+ }
- if (!ooc.Instrument())
- return false;
-
+ if (m_checker_functions.m_objc_object_check.get())
+ {
+ ObjcObjectChecker ooc(M, m_checker_functions);
+
+ if (!ooc.Inspect(*function))
+ return false;
+
+ if (!ooc.Instrument())
+ return false;
+ }
+
if (log && log->GetVerbose())
{
std::string s;
More information about the lldb-commits
mailing list