diff options
author | Sean Callanan <scallanan@apple.com> | 2011-12-01 04:31:46 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2011-12-01 04:31:46 +0000 |
commit | a5230ce303ef1a8da2339ce7bdbb14be23ecc2d0 (patch) | |
tree | 2005a050282003bf4fd71d8538a6f1988cef28d2 | |
parent | eaeaf6f906c7cd2196800a5195256ca6839825f9 (diff) | |
download | bcm5719-llvm-a5230ce303ef1a8da2339ce7bdbb14be23ecc2d0.tar.gz bcm5719-llvm-a5230ce303ef1a8da2339ce7bdbb14be23ecc2d0.zip |
Picked up a new revision of Clang to pull in Objective-C
enhancements. With these enhancements, the return values
of Objective-C methods with unknown return types can be
implicitly cast to id for the purpose of making method
calls.
So what would have required this:
(int)[(id)[ClassWithNoDebugInfo methodReturningObject] methodReturningInt]
can now be written as:
(int)[[ClassWithNoDebugInfo methodReturningObject] methodReturningInt]
llvm-svn: 145567
-rw-r--r-- | lldb/scripts/build-llvm.pl | 4 | ||||
-rw-r--r-- | lldb/scripts/clang.complete-type-being-laid-out.diff | 4 | ||||
-rw-r--r-- | lldb/scripts/clang.instantiate-complete-type.diff | 2 | ||||
-rw-r--r-- | lldb/scripts/clang.is-being-completed-from-lexical-storage.diff | 14 | ||||
-rw-r--r-- | lldb/scripts/clang.require-complete-type.diff | 2 | ||||
-rw-r--r-- | lldb/source/Expression/ClangExpressionParser.cpp | 3 |
6 files changed, 15 insertions, 14 deletions
diff --git a/lldb/scripts/build-llvm.pl b/lldb/scripts/build-llvm.pl index 3e494fe3026..7e209ee3afb 100644 --- a/lldb/scripts/build-llvm.pl +++ b/lldb/scripts/build-llvm.pl @@ -21,8 +21,8 @@ our ($llvm_clang_basename, $llvm_clang_dirname) = fileparse ($llvm_clang_outfile our $llvm_configuration = $ENV{LLVM_CONFIGURATION}; -our $llvm_revision = "144982"; -our $clang_revision = "144982"; +our $llvm_revision = "145552"; +our $clang_revision = "145552"; our $SRCROOT = "$ENV{SRCROOT}"; our $llvm_dstroot_zip = "$SRCROOT/llvm.zip"; diff --git a/lldb/scripts/clang.complete-type-being-laid-out.diff b/lldb/scripts/clang.complete-type-being-laid-out.diff index da6232aa9a8..eb4077d52f2 100644 --- a/lldb/scripts/clang.complete-type-being-laid-out.diff +++ b/lldb/scripts/clang.complete-type-being-laid-out.diff @@ -1,8 +1,8 @@ Index: lib/AST/RecordLayoutBuilder.cpp =================================================================== ---- lib/AST/RecordLayoutBuilder.cpp (revision 144982) +--- lib/AST/RecordLayoutBuilder.cpp (revision 145552) +++ lib/AST/RecordLayoutBuilder.cpp (working copy) -@@ -2044,6 +2044,10 @@ +@@ -2049,6 +2049,10 @@ // as soon as we begin to parse the definition. That definition is // not a complete definition (which is what isDefinition() tests) // until we *finish* parsing the definition. diff --git a/lldb/scripts/clang.instantiate-complete-type.diff b/lldb/scripts/clang.instantiate-complete-type.diff index 80934509598..fd25244e642 100644 --- a/lldb/scripts/clang.instantiate-complete-type.diff +++ b/lldb/scripts/clang.instantiate-complete-type.diff @@ -1,6 +1,6 @@ Index: lib/Sema/SemaTemplateInstantiate.cpp =================================================================== ---- lib/Sema/SemaTemplateInstantiate.cpp (revision 144982) +--- lib/Sema/SemaTemplateInstantiate.cpp (revision 145552) +++ lib/Sema/SemaTemplateInstantiate.cpp (working copy) @@ -1683,6 +1683,10 @@ TemplateSpecializationKind TSK, diff --git a/lldb/scripts/clang.is-being-completed-from-lexical-storage.diff b/lldb/scripts/clang.is-being-completed-from-lexical-storage.diff index 998c4320630..bcf7ce97616 100644 --- a/lldb/scripts/clang.is-being-completed-from-lexical-storage.diff +++ b/lldb/scripts/clang.is-being-completed-from-lexical-storage.diff @@ -1,6 +1,6 @@ Index: lib/AST/ASTImporter.cpp =================================================================== ---- lib/AST/ASTImporter.cpp (revision 144982) +--- lib/AST/ASTImporter.cpp (revision 145552) +++ lib/AST/ASTImporter.cpp (working copy) @@ -2300,7 +2300,8 @@ @@ -14,9 +14,9 @@ Index: lib/AST/ASTImporter.cpp // function. Index: lib/AST/Decl.cpp =================================================================== ---- lib/AST/Decl.cpp (revision 144982) +--- lib/AST/Decl.cpp (revision 145552) +++ lib/AST/Decl.cpp (working copy) -@@ -2405,8 +2405,14 @@ +@@ -2420,8 +2420,14 @@ ExternalASTSource::Deserializing TheFields(Source); SmallVector<Decl*, 64> Decls; @@ -35,9 +35,9 @@ Index: lib/AST/Decl.cpp Index: include/clang/AST/DeclBase.h =================================================================== ---- include/clang/AST/DeclBase.h (revision 144982) +--- include/clang/AST/DeclBase.h (revision 145552) +++ include/clang/AST/DeclBase.h (working copy) -@@ -807,6 +807,12 @@ +@@ -824,6 +824,12 @@ /// storage that contains additional declarations that are visible /// in this context. mutable unsigned ExternalVisibleStorage : 1; @@ -50,7 +50,7 @@ Index: include/clang/AST/DeclBase.h /// \brief Pointer to the data structure used to lookup declarations /// within this context (or a DependentStoredDeclsMap if this is a -@@ -834,8 +840,8 @@ +@@ -851,8 +857,8 @@ DeclContext(Decl::Kind K) : DeclKind(K), ExternalLexicalStorage(false), @@ -61,7 +61,7 @@ Index: include/clang/AST/DeclBase.h public: ~DeclContext(); -@@ -1339,6 +1345,14 @@ +@@ -1356,6 +1362,14 @@ ExternalVisibleStorage = ES; } diff --git a/lldb/scripts/clang.require-complete-type.diff b/lldb/scripts/clang.require-complete-type.diff index 9e52947eebb..a99e127de53 100644 --- a/lldb/scripts/clang.require-complete-type.diff +++ b/lldb/scripts/clang.require-complete-type.diff @@ -1,6 +1,6 @@ Index: lib/Sema/SemaType.cpp =================================================================== ---- lib/Sema/SemaType.cpp (revision 144982) +--- lib/Sema/SemaType.cpp (revision 145552) +++ lib/Sema/SemaType.cpp (working copy) @@ -4065,6 +4065,34 @@ if (!T->isIncompleteType()) diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp index ae55cadc392..351c4847170 100644 --- a/lldb/source/Expression/ClangExpressionParser.cpp +++ b/lldb/source/Expression/ClangExpressionParser.cpp @@ -130,7 +130,7 @@ static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) { case EmitCodeGenOnly: return new EmitCodeGenOnlyAction(); case EmitObj: return new EmitObjAction(); case FixIt: return new FixItAction(); - case GeneratePCH: return new GeneratePCHAction(false); + case GeneratePCH: return new GeneratePCHAction(); case GeneratePTH: return new GeneratePTHAction(); case InitOnly: return new InitOnlyAction(); case ParseSyntaxOnly: return new SyntaxOnlyAction(); @@ -196,6 +196,7 @@ ClangExpressionParser::ClangExpressionParser (ExecutionContextScope *exe_scope, llvm::InitializeAllTargets(); llvm::InitializeAllAsmPrinters(); llvm::InitializeAllTargetMCs(); + llvm::InitializeAllDisassemblers(); } } InitializeLLVM; |