[Lldb-commits] [lldb] r143560 - in /lldb/trunk/source: Expression/ClangExpressionDeclMap.cpp Symbol/ClangASTContext.cpp Symbol/ClangASTType.cpp

Sean Callanan scallanan at apple.com
Wed Nov 2 11:09:01 PDT 2011


Author: spyffe
Date: Wed Nov  2 13:09:01 2011
New Revision: 143560

URL: http://llvm.org/viewvc/llvm-project?rev=143560&view=rev
Log:
Updated LLVM/Clang to pull in an MCJIT fix that
allows us to set __attribute__ ((used)) on expressions
that masquerade as methods.  When we are stopped in
classes in anonymous namespaces, this fix (and enabling
__attribute__ ((used)) on the method) will allow
expressions to run.

Modified:
    lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
    lldb/trunk/source/Symbol/ClangASTContext.cpp
    lldb/trunk/source/Symbol/ClangASTType.cpp

Modified: lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp?rev=143560&r1=143559&r2=143560&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp Wed Nov  2 13:09:01 2011
@@ -3016,7 +3016,7 @@
         const bool is_static = false;
         const bool is_inline = false;
         const bool is_explicit = false;
-        const bool is_attr_used = false;
+        const bool is_attr_used = true;
         const bool is_artificial = false;
         
         ClangASTContext::AddMethodToCXXRecordType (parser_ast_context,

Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=143560&r1=143559&r2=143560&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Wed Nov  2 13:09:01 2011
@@ -3059,6 +3059,7 @@
         case clang::BuiltinType::BoundMember:
         case clang::BuiltinType::Half:          
         case clang::BuiltinType::ARCUnbridgedCast:          
+        case clang::BuiltinType::PseudoObject:
             return 1;
         }
         break;
@@ -4898,6 +4899,7 @@
                         case clang::BuiltinType::BoundMember:
                         case clang::BuiltinType::Half:          
                         case clang::BuiltinType::ARCUnbridgedCast:          
+                        case clang::BuiltinType::PseudoObject:
                             break;
                     }
                     break;
@@ -5033,6 +5035,7 @@
                     case clang::BuiltinType::BoundMember:
                     case clang::BuiltinType::Half:          
                     case clang::BuiltinType::ARCUnbridgedCast:          
+                    case clang::BuiltinType::PseudoObject:
                         break;
                 }
                 break;

Modified: lldb/trunk/source/Symbol/ClangASTType.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTType.cpp?rev=143560&r1=143559&r2=143560&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTType.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTType.cpp Wed Nov  2 13:09:01 2011
@@ -572,6 +572,7 @@
         case clang::BuiltinType::ObjCSel:       
         case clang::BuiltinType::Half:          
         case clang::BuiltinType::ARCUnbridgedCast:          
+        case clang::BuiltinType::PseudoObject:
             return lldb::eFormatHex;
         }
         break;





More information about the lldb-commits mailing list