]> granicus.if.org Git - clang/commit
Restructure how the driver communicates information about the
authorJohn McCall <rjmccall@apple.com>
Wed, 20 Jun 2012 06:18:46 +0000 (06:18 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 20 Jun 2012 06:18:46 +0000 (06:18 +0000)
commit260611a32535c851237926bfcf78869b13c07d5b
tree01c599c62e2be496937d5b7dc4c7b51f43edddf8
parent3c4e76d712eac172b100bb10b96637ffca105433
Restructure how the driver communicates information about the
target Objective-C runtime down to the frontend:  break this
down into a single target runtime kind and version, and compute
all the relevant information from that.  This makes it
relatively painless to add support for new runtimes to the
compiler.  Make the new -cc1 flag, -fobjc-runtime=blah-x.y.z,
available at the driver level as a better and more general
alternative to -fgnu-runtime and -fnext-runtime.  This new
concept of an Objective-C runtime also encompasses what we
were previously separating out as the "Objective-C ABI", so
fragile vs. non-fragile runtimes are now really modelled as
different kinds of runtime, paving the way for better overall
differentiation.

As a sort of special case, continue to accept the -cc1 flag
-fobjc-runtime-has-weak, as a sop to PLCompatibilityWeak.

I won't go so far as to say "no functionality change", even
ignoring the new driver flag, but subtle changes in driver
semantics are almost certainly not intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158793 91177308-0d34-0410-b5e6-96231b3b80d8
251 files changed:
include/clang/Basic/DiagnosticDriverKinds.td
include/clang/Basic/LangOptions.def
include/clang/Basic/LangOptions.h
include/clang/Basic/ObjCRuntime.h [new file with mode: 0644]
include/clang/Basic/VersionTuple.h
include/clang/Driver/CC1Options.td
include/clang/Driver/ObjCRuntime.h [deleted file]
include/clang/Driver/Options.td
include/clang/Driver/ToolChain.h
include/clang/Frontend/CodeGenOptions.h
include/clang/Serialization/ASTReader.h
lib/AST/ASTContext.cpp
lib/AST/DeclBase.cpp
lib/Basic/CMakeLists.txt
lib/Basic/ObjCRuntime.cpp [new file with mode: 0644]
lib/Basic/VersionTuple.cpp
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGException.cpp
lib/CodeGen/CGObjC.cpp
lib/CodeGen/CGObjCGNU.cpp
lib/CodeGen/CGObjCMac.cpp
lib/CodeGen/CGRTTI.cpp
lib/CodeGen/CodeGenModule.cpp
lib/Driver/ToolChain.cpp
lib/Driver/ToolChains.cpp
lib/Driver/ToolChains.h
lib/Driver/Tools.cpp
lib/Driver/Tools.h
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/InitPreprocessor.cpp
lib/Lex/PPMacroExpansion.cpp
lib/Rewrite/FrontendActions.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaDeclObjC.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprObjC.cpp
lib/Sema/SemaObjCProperty.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp
test/Analysis/rdar-7168531.m
test/CodeGenObjC/2008-11-12-Metadata.m
test/CodeGenObjC/2008-11-24-ConstCFStrings.m
test/CodeGenObjC/2010-03-17-StructRef.m
test/CodeGenObjC/assign.m
test/CodeGenObjC/autorelease.m
test/CodeGenObjC/bitfield-1.m
test/CodeGenObjC/bitfield-access.m
test/CodeGenObjC/bitfield-gnu.m
test/CodeGenObjC/bitfield_encoding.m
test/CodeGenObjC/block-6.m
test/CodeGenObjC/block-var-layout.m
test/CodeGenObjC/blocks-1.m
test/CodeGenObjC/blocks-2.m
test/CodeGenObjC/blocks-3.m
test/CodeGenObjC/blocks-4.m
test/CodeGenObjC/blocks-5.m
test/CodeGenObjC/blocks.m
test/CodeGenObjC/builtins.m
test/CodeGenObjC/category-class.m
test/CodeGenObjC/class-type.m
test/CodeGenObjC/constant-string-class.m
test/CodeGenObjC/constant-strings.m
test/CodeGenObjC/deadcode_strip_used_var.m
test/CodeGenObjC/debug-info-block-helper.m
test/CodeGenObjC/debug-info-crash.m
test/CodeGenObjC/debug-info-static-var.m
test/CodeGenObjC/encode-cstyle-method.m
test/CodeGenObjC/encode-test.m
test/CodeGenObjC/exceptions.m
test/CodeGenObjC/fp2ret.m
test/CodeGenObjC/fpret.m
test/CodeGenObjC/gnu-exceptions.m
test/CodeGenObjC/id-isa-codegen.m
test/CodeGenObjC/image-info.m
test/CodeGenObjC/implicit-objc_msgSend.m
test/CodeGenObjC/interface.m
test/CodeGenObjC/ivar-layout-64-bitfields.m
test/CodeGenObjC/ivar-layout-array0-struct.m
test/CodeGenObjC/ivar-layout-no-optimize.m
test/CodeGenObjC/ivars.m
test/CodeGenObjC/link-errors.m
test/CodeGenObjC/local-static-block.m
test/CodeGenObjC/messages-2.m
test/CodeGenObjC/messages.m
test/CodeGenObjC/metadata-symbols-32.m
test/CodeGenObjC/misc-atomic-property.m
test/CodeGenObjC/mrr-autorelease.m
test/CodeGenObjC/nested-rethrow.m
test/CodeGenObjC/next-objc-dispatch.m
test/CodeGenObjC/no-category-class.m
test/CodeGenObjC/nonlazy-msgSend.m
test/CodeGenObjC/ns-constant-strings.m
test/CodeGenObjC/objc-align.m
test/CodeGenObjC/objc-assign-ivar.m
test/CodeGenObjC/objc-gc-aggr-assign.m
test/CodeGenObjC/objc-read-weak-byref.m
test/CodeGenObjC/objc2-assign-global.m
test/CodeGenObjC/objc2-new-gc-api-strongcast.m
test/CodeGenObjC/objc2-no-write-barrier.m
test/CodeGenObjC/objc2-retain-codegen.m
test/CodeGenObjC/objc2-strong-cast-1.m
test/CodeGenObjC/objc2-weak-assign.m
test/CodeGenObjC/objc2-weak-block-call.m
test/CodeGenObjC/objc2-weak-compare.m
test/CodeGenObjC/objc2-weak-ivar-debug.m
test/CodeGenObjC/objc2-weak-ivar.m
test/CodeGenObjC/objc2-write-barrier-2.m
test/CodeGenObjC/objc2-write-barrier-4.m
test/CodeGenObjC/objc2-write-barrier-5.m
test/CodeGenObjC/objc2-write-barrier.m
test/CodeGenObjC/object-incr-decr-1.m
test/CodeGenObjC/predefined-expr.m
test/CodeGenObjC/property-complex.m
test/CodeGenObjC/property-ref-cast-to-void.m
test/CodeGenObjC/protocol-in-extended-class.m
test/CodeGenObjC/protocols-lazy.m
test/CodeGenObjC/rdr-6732143-dangling-block-reference.m
test/CodeGenObjC/super-message-fragileabi.m
test/CodeGenObjC/synchronized.m
test/CodeGenObjC/terminate.m
test/CodeGenObjC/undefined-protocol.m
test/CodeGenObjC/variadic-sends.m
test/CodeGenObjC/x86_64-struct-return-gc.m
test/CodeGenObjCXX/block-in-template-inst.mm
test/CodeGenObjCXX/block-var-layout.mm
test/CodeGenObjCXX/blocks.mm
test/CodeGenObjCXX/catch-id-type.mm
test/CodeGenObjCXX/copy.mm
test/CodeGenObjCXX/copyable-property-object.mm
test/CodeGenObjCXX/gc.mm
test/CodeGenObjCXX/implicit-copy-assign-operator.mm
test/CodeGenObjCXX/implicit-copy-constructor.mm
test/CodeGenObjCXX/mangle-blocks.mm
test/CodeGenObjCXX/message-reference.mm
test/CodeGenObjCXX/nrvo.mm
test/CodeGenObjCXX/property-derived-to-base-conv.mm
test/CodeGenObjCXX/property-object-conditional-exp.mm
test/CodeGenObjCXX/property-object-reference-2.mm
test/CodeGenObjCXX/property-object-reference.mm
test/CodeGenObjCXX/property-reference.mm
test/CodeGenObjCXX/refence-assign-write-barrier.mm
test/CodeGenObjCXX/selector-expr-lvalue.mm
test/CodeGenObjCXX/write-barrier-global-assign.mm
test/Coverage/codegen-gnu.m
test/Driver/darwin-objc-defaults.m
test/Driver/darwin-objc-options.m
test/Driver/gnu-runtime.m
test/Driver/ios-simulator-arcruntime.c
test/Driver/rewrite-legacy-objc.m
test/Driver/rewrite-objc.m
test/Parser/objc-init.m
test/Preprocessor/init.c
test/Preprocessor/non_fragile_feature1.m
test/Rewriter/blockcast3.mm
test/Rewriter/blockstruct.m
test/Rewriter/crash.m
test/Rewriter/finally.m
test/Rewriter/func-in-impl.m
test/Rewriter/id-test-3.m
test/Rewriter/inner-block-helper-funcs.mm
test/Rewriter/instancetype-test.mm
test/Rewriter/ivar-encoding-1.m
test/Rewriter/ivar-encoding-2.m
test/Rewriter/metadata-test-1.m
test/Rewriter/metadata-test-2.m
test/Rewriter/method-encoding-1.m
test/Rewriter/objc-encoding-bug-1.m
test/Rewriter/objc-ivar-receiver-1.m
test/Rewriter/objc-modern-getclass-proto.mm
test/Rewriter/objc-string-concat-1.m
test/Rewriter/objc-super-test.m
test/Rewriter/objc-synchronized-1.m
test/Rewriter/properties.m
test/Rewriter/property-dot-syntax.mm
test/Rewriter/protocol-rewrite-1.m
test/Rewriter/protocol-rewrite-2.m
test/Rewriter/rewrite-anonymous-union.m
test/Rewriter/rewrite-api-bug.m
test/Rewriter/rewrite-block-argument.m
test/Rewriter/rewrite-block-consts.mm
test/Rewriter/rewrite-block-ivar-call.mm
test/Rewriter/rewrite-block-literal-1.mm
test/Rewriter/rewrite-block-literal.mm
test/Rewriter/rewrite-block-pointer.mm
test/Rewriter/rewrite-block-property.m
test/Rewriter/rewrite-byref-in-nested-blocks.mm
test/Rewriter/rewrite-byref-vars.mm
test/Rewriter/rewrite-cast-ivar-access.mm
test/Rewriter/rewrite-cast-to-bool.mm
test/Rewriter/rewrite-category-property.mm
test/Rewriter/rewrite-constructor-init.mm
test/Rewriter/rewrite-eh.m
test/Rewriter/rewrite-elaborated-type.mm
test/Rewriter/rewrite-extern-c.mm
test/Rewriter/rewrite-foreach-1.m
test/Rewriter/rewrite-foreach-2.m
test/Rewriter/rewrite-foreach-3.m
test/Rewriter/rewrite-foreach-4.m
test/Rewriter/rewrite-foreach-5.m
test/Rewriter/rewrite-foreach-6.m
test/Rewriter/rewrite-foreach-7.m
test/Rewriter/rewrite-foreach-in-block.mm
test/Rewriter/rewrite-foreach-protocol-id.m
test/Rewriter/rewrite-forward-class.m
test/Rewriter/rewrite-forward-class.mm
test/Rewriter/rewrite-function-decl.mm
test/Rewriter/rewrite-implementation.mm
test/Rewriter/rewrite-ivar-use.m
test/Rewriter/rewrite-local-externs-in-block.mm
test/Rewriter/rewrite-local-static-id.mm
test/Rewriter/rewrite-message-expr.mm
test/Rewriter/rewrite-nest.m
test/Rewriter/rewrite-nested-blocks-1.mm
test/Rewriter/rewrite-nested-blocks-2.mm
test/Rewriter/rewrite-nested-blocks.mm
test/Rewriter/rewrite-nested-ivar.mm
test/Rewriter/rewrite-nested-property-in-blocks.mm
test/Rewriter/rewrite-no-nextline.mm
test/Rewriter/rewrite-property-attributes.mm
test/Rewriter/rewrite-property-set-cfstring.mm
test/Rewriter/rewrite-protocol-property.mm
test/Rewriter/rewrite-protocol-qualified.mm
test/Rewriter/rewrite-protocol-type-1.m
test/Rewriter/rewrite-qualified-id.mm
test/Rewriter/rewrite-rewritten-initializer.mm
test/Rewriter/rewrite-static-block.mm
test/Rewriter/rewrite-super-message.mm
test/Rewriter/rewrite-trivial-constructor.mm
test/Rewriter/rewrite-try-catch.m
test/Rewriter/rewrite-typeof.mm
test/Rewriter/rewrite-unique-block-api.mm
test/Rewriter/rewrite-user-defined-accessors.mm
test/Rewriter/rewrite-vararg.m
test/Rewriter/rewrite-weak-attr.m
test/Rewriter/static-type-protocol-1.m
test/Rewriter/undecl-objc-h.m
test/Rewriter/undeclared-method-1.m
test/Rewriter/undef-field-reference-1.m
test/Rewriter/va-method.m
test/Rewriter/weak_byref_objects.m
test/SemaObjC/at-defs.m
test/SemaObjC/class-bitfield.m
test/SemaObjC/conflicting-ivar-test-1.m
test/SemaObjC/interface-1.m
test/SemaObjC/interface-layout.m
test/SemaObjC/ivar-in-class-extension-error.m
test/SemaObjC/property.m
test/SemaObjCXX/exceptions-fragile.mm
test/SemaObjCXX/fragile-abi-object-assign.m
test/SemaObjCXX/message.mm