[Lldb-commits] [lldb] r113429 - /lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp

Sean Callanan scallanan at apple.com
Wed Sep 8 15:38:54 PDT 2010


Author: spyffe
Date: Wed Sep  8 17:38:54 2010
New Revision: 113429

URL: http://llvm.org/viewvc/llvm-project?rev=113429&view=rev
Log:
There is currently a problem with our interaction
with the Clang parser that prevents us from passing
Objective-C types to functions that expect C types.
This quick hack keeps us in business until that
interaction is fixed.

Modified:
    lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp

Modified: lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp?rev=113429&r1=113428&r2=113429&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp Wed Sep  8 17:38:54 2010
@@ -955,6 +955,9 @@
     
     if (fun)
     {
+#define BROKEN_OVERLOADING
+        // Awaiting a fix on the Clang side
+#ifndef BROKEN_OVERLOADING
         Type *fun_type = fun->GetType();
         
         if (!fun_type) 
@@ -980,6 +983,11 @@
         void *copied_type = ClangASTContext::CopyType(context.GetASTContext(), fun_ast_context, fun_opaque_type);
         
         fun_decl = context.AddFunDecl(copied_type);
+#else
+        fun_address = &fun->GetAddressRange().GetBaseAddress();
+        
+        fun_decl = context.AddGenericFunDecl();
+#endif
     }
     else if (symbol)
     {





More information about the lldb-commits mailing list