[Lldb-commits] [lldb] r123507 - /lldb/trunk/source/Expression/ClangExpressionParser.cpp

Greg Clayton gclayton at apple.com
Fri Jan 14 17:32:14 PST 2011


Author: gclayton
Date: Fri Jan 14 19:32:14 2011
New Revision: 123507

URL: http://llvm.org/viewvc/llvm-project?rev=123507&view=rev
Log:
Enabled ObjC 2 abilities for expressions. We will enable the fragile ivar
stuff soon when we get a fix for looking up the "OBJC_IVAR_$_Class.ivar"
style symbols into IRForTarget::ResolveExternals() next week.


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

Modified: lldb/trunk/source/Expression/ClangExpressionParser.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionParser.cpp?rev=123507&r1=123506&r2=123507&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionParser.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionParser.cpp Fri Jan 14 19:32:14 2011
@@ -207,7 +207,15 @@
     // Parse expressions as Objective C++ regardless of context.
     // Our hook into Clang's lookup mechanism only works in C++.
     m_compiler->getLangOpts().CPlusPlus = true;
+    
+    // Setup objective C
     m_compiler->getLangOpts().ObjC1 = true;
+    m_compiler->getLangOpts().ObjC2 = true;
+    // We need to enable the fragile ABI for things target triples that
+    // support it. 
+//    m_compiler->getLangOpts().ObjCNonFragileABI = true;     // NOT i386
+//    m_compiler->getLangOpts().ObjCNonFragileABI2 = true;    // NOT i386
+
     m_compiler->getLangOpts().ThreadsafeStatics = false;
     m_compiler->getLangOpts().AccessControl = false; // Debuggers get universal access
     m_compiler->getLangOpts().DollarIdents = true; // $ indicates a persistent variable name





More information about the lldb-commits mailing list