[Lldb-commits] [lldb] r116676 - /lldb/trunk/source/Expression/IRDynamicChecks.cpp

Greg Clayton gclayton at apple.com
Sat Oct 16 14:09:32 PDT 2010


Author: gclayton
Date: Sat Oct 16 16:09:32 2010
New Revision: 116676

URL: http://llvm.org/viewvc/llvm-project?rev=116676&view=rev
Log:
prefix more stuff with '$' to make sure we don't go trying to lookup anything
we don't need to.


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=116676&r1=116675&r2=116676&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRDynamicChecks.cpp (original)
+++ lldb/trunk/source/Expression/IRDynamicChecks.cpp Sat Oct 16 16:09:32 2010
@@ -31,9 +31,9 @@
 
 static const char g_valid_pointer_check_text[] = 
 "extern \"C\" void\n"
-VALID_POINTER_CHECK_NAME " (unsigned char *ptr)\n"
+"$__lldb_valid_pointer_check (unsigned char *$__lldb_arg_ptr)\n"
 "{\n"
-"    unsigned char val = *ptr;\n"
+"    unsigned char $__lldb_local_val = *__lldb_arg_ptr;\n"
 "}";
 
 static bool FunctionExists(const SymbolContext &sym_ctx, const char *name)
@@ -59,7 +59,7 @@
     if (FunctionExists(sym_ctx, "gdb_object_getClass"))
     {
         return  "extern \"C\" void "
-                "$__lldb_objc_object_check(uint8_t *obj)"
+                "$__lldb_objc_object_check(uint8_t *$__lldb_arg_obj)"
                 "{"
                     ""
                 "}";
@@ -67,7 +67,7 @@
     else if (FunctionExists(sym_ctx, "gdb_class_getClass"))
     {
         return  "extern \"C\" void "
-                "$__lldb_objc_object_check(uint8_t *obj)"
+                "$__lldb_objc_object_check(uint8_t *$__lldb_arg_obj)"
                 "{"
                     ""
                 "}";
@@ -75,7 +75,7 @@
     else
     {
         return  "extern \"C\" void "
-                "$__lldb_objc_object_check(uint8_t *obj)"
+                "$__lldb_objc_object_check(uint8_t *$__lldb_arg_obj)"
                 "{"
                     ""
                 "}";





More information about the lldb-commits mailing list