diff --git a/lldb/test/API/commands/expression/context-object-objc/Makefile b/lldb/test/API/commands/expression/context-object-objc/Makefile --- a/lldb/test/API/commands/expression/context-object-objc/Makefile +++ b/lldb/test/API/commands/expression/context-object-objc/Makefile @@ -1,3 +1,4 @@ OBJC_SOURCES := main.m -LD_EXTRAS := -framework Foundation +LD_EXTRAS := -lobjc + include Makefile.rules diff --git a/lldb/test/API/commands/expression/context-object-objc/main.m b/lldb/test/API/commands/expression/context-object-objc/main.m --- a/lldb/test/API/commands/expression/context-object-objc/main.m +++ b/lldb/test/API/commands/expression/context-object-objc/main.m @@ -1,4 +1,4 @@ -#import +#import @interface ObjcClass : NSObject { int field; diff --git a/lldb/test/API/commands/expression/namespace_local_var_same_name_obj_c/main.mm b/lldb/test/API/commands/expression/namespace_local_var_same_name_obj_c/main.mm --- a/lldb/test/API/commands/expression/namespace_local_var_same_name_obj_c/main.mm +++ b/lldb/test/API/commands/expression/namespace_local_var_same_name_obj_c/main.mm @@ -1,4 +1,4 @@ -#import +#import @interface Util : NSObject + (void)debugPrintErrorStatic; - (void)debugPrintError; diff --git a/lldb/test/API/commands/frame/recognizer/Makefile b/lldb/test/API/commands/frame/recognizer/Makefile --- a/lldb/test/API/commands/frame/recognizer/Makefile +++ b/lldb/test/API/commands/frame/recognizer/Makefile @@ -1,9 +1,5 @@ OBJC_SOURCES := main.m - CFLAGS_EXTRAS := -g0 # No debug info. MAKE_DSYM := NO - - -LD_EXTRAS := -framework Foundation include Makefile.rules diff --git a/lldb/test/API/commands/frame/recognizer/main.m b/lldb/test/API/commands/frame/recognizer/main.m --- a/lldb/test/API/commands/frame/recognizer/main.m +++ b/lldb/test/API/commands/frame/recognizer/main.m @@ -1,4 +1,4 @@ -#import +#import void foo(int a, int b) { diff --git a/lldb/test/API/functionalities/type_lookup/Makefile b/lldb/test/API/functionalities/type_lookup/Makefile --- a/lldb/test/API/functionalities/type_lookup/Makefile +++ b/lldb/test/API/functionalities/type_lookup/Makefile @@ -1,8 +1,5 @@ OBJCXX_SOURCES := main.mm - CFLAGS_EXTRAS := -w +LD_EXTRAS := -lobjc - - -LD_EXTRAS := -framework Foundation include Makefile.rules diff --git a/lldb/test/API/functionalities/type_lookup/main.mm b/lldb/test/API/functionalities/type_lookup/main.mm --- a/lldb/test/API/functionalities/type_lookup/main.mm +++ b/lldb/test/API/functionalities/type_lookup/main.mm @@ -1,4 +1,4 @@ -#import +#import class MyCPPClass { public: diff --git a/lldb/test/API/lang/objc/bitfield_ivars/Makefile b/lldb/test/API/lang/objc/bitfield_ivars/Makefile --- a/lldb/test/API/lang/objc/bitfield_ivars/Makefile +++ b/lldb/test/API/lang/objc/bitfield_ivars/Makefile @@ -1,4 +1,4 @@ OBJC_SOURCES := main.m -LD_EXTRAS = -framework Foundation +LD_EXTRAS = -lobjc include Makefile.rules diff --git a/lldb/test/API/lang/objc/bitfield_ivars/main.m b/lldb/test/API/lang/objc/bitfield_ivars/main.m --- a/lldb/test/API/lang/objc/bitfield_ivars/main.m +++ b/lldb/test/API/lang/objc/bitfield_ivars/main.m @@ -1,4 +1,4 @@ -#import +#import typedef struct { unsigned char fieldOne : 1; diff --git a/lldb/test/API/lang/objc/blocks/Makefile b/lldb/test/API/lang/objc/blocks/Makefile --- a/lldb/test/API/lang/objc/blocks/Makefile +++ b/lldb/test/API/lang/objc/blocks/Makefile @@ -1,4 +1,4 @@ OBJC_SOURCES := ivars-in-blocks.m main.m -LD_EXTRAS := -lobjc -framework Foundation +LD_EXTRAS := -lobjc include Makefile.rules diff --git a/lldb/test/API/lang/objc/blocks/ivars-in-blocks.h b/lldb/test/API/lang/objc/blocks/ivars-in-blocks.h --- a/lldb/test/API/lang/objc/blocks/ivars-in-blocks.h +++ b/lldb/test/API/lang/objc/blocks/ivars-in-blocks.h @@ -1,4 +1,4 @@ -#import +#import @interface IAmBlocky : NSObject { diff --git a/lldb/test/API/lang/objc/blocks/ivars-in-blocks.m b/lldb/test/API/lang/objc/blocks/ivars-in-blocks.m --- a/lldb/test/API/lang/objc/blocks/ivars-in-blocks.m +++ b/lldb/test/API/lang/objc/blocks/ivars-in-blocks.m @@ -1,4 +1,5 @@ #import "ivars-in-blocks.h" +#import typedef int (^my_block_ptr_type) (int); diff --git a/lldb/test/API/lang/objc/conflicting-definition/Test/Test.h b/lldb/test/API/lang/objc/conflicting-definition/Test/Test.h --- a/lldb/test/API/lang/objc/conflicting-definition/Test/Test.h +++ b/lldb/test/API/lang/objc/conflicting-definition/Test/Test.h @@ -1,5 +1,5 @@ -#import #import +#import @interface Test : NSObject { @public diff --git a/lldb/test/API/lang/objc/forward-decl/Container.h b/lldb/test/API/lang/objc/forward-decl/Container.h --- a/lldb/test/API/lang/objc/forward-decl/Container.h +++ b/lldb/test/API/lang/objc/forward-decl/Container.h @@ -1,4 +1,4 @@ -#import +#import @class ForwardDeclaredClass; diff --git a/lldb/test/API/lang/objc/forward-decl/Makefile b/lldb/test/API/lang/objc/forward-decl/Makefile --- a/lldb/test/API/lang/objc/forward-decl/Makefile +++ b/lldb/test/API/lang/objc/forward-decl/Makefile @@ -1,8 +1,6 @@ DYLIB_NAME := Container DYLIB_OBJC_SOURCES := Container.m OBJC_SOURCES := main.m +LD_EXTRAS := -lobjc - - -LD_EXTRAS := -framework Foundation include Makefile.rules diff --git a/lldb/test/API/lang/objc/forward-decl/main.m b/lldb/test/API/lang/objc/forward-decl/main.m --- a/lldb/test/API/lang/objc/forward-decl/main.m +++ b/lldb/test/API/lang/objc/forward-decl/main.m @@ -1,5 +1,6 @@ -#import +#import #import "Container.h" +#import int main(int argc, const char * argv[]) { diff --git a/lldb/test/API/lang/objc/foundation/my-base.m b/lldb/test/API/lang/objc/foundation/my-base.m --- a/lldb/test/API/lang/objc/foundation/my-base.m +++ b/lldb/test/API/lang/objc/foundation/my-base.m @@ -1,4 +1,4 @@ -#import +#import #import "my-base.h" @implementation MyBase #if __OBJC2__ diff --git a/lldb/test/API/lang/objc/hidden-ivars/InternalDefiner.h b/lldb/test/API/lang/objc/hidden-ivars/InternalDefiner.h --- a/lldb/test/API/lang/objc/hidden-ivars/InternalDefiner.h +++ b/lldb/test/API/lang/objc/hidden-ivars/InternalDefiner.h @@ -1,4 +1,4 @@ -#import +#import #import @interface InternalDefiner : NSObject { diff --git a/lldb/test/API/lang/objc/ivar-IMP/Makefile b/lldb/test/API/lang/objc/ivar-IMP/Makefile --- a/lldb/test/API/lang/objc/ivar-IMP/Makefile +++ b/lldb/test/API/lang/objc/ivar-IMP/Makefile @@ -1,5 +1,5 @@ OBJC_SOURCES := myclass.m repro.m -LD_EXTRAS := -framework Foundation +LD_EXTRAS := -lobjc include Makefile.rules diff --git a/lldb/test/API/lang/objc/ivar-IMP/myclass.h b/lldb/test/API/lang/objc/ivar-IMP/myclass.h --- a/lldb/test/API/lang/objc/ivar-IMP/myclass.h +++ b/lldb/test/API/lang/objc/ivar-IMP/myclass.h @@ -1,4 +1,4 @@ -#import +#import @interface MyClass : NSObject {} diff --git a/lldb/test/API/lang/objc/ivar-IMP/myclass.m b/lldb/test/API/lang/objc/ivar-IMP/myclass.m --- a/lldb/test/API/lang/objc/ivar-IMP/myclass.m +++ b/lldb/test/API/lang/objc/ivar-IMP/myclass.m @@ -1,4 +1,4 @@ -#import +#import #import "myclass.h" @implementation MyClass diff --git a/lldb/test/API/lang/objc/ivar-IMP/repro.m b/lldb/test/API/lang/objc/ivar-IMP/repro.m --- a/lldb/test/API/lang/objc/ivar-IMP/repro.m +++ b/lldb/test/API/lang/objc/ivar-IMP/repro.m @@ -1,4 +1,4 @@ -#import +#import #import "myclass.h" int main() { diff --git a/lldb/test/API/lang/objc/modules-objc-property/main.m b/lldb/test/API/lang/objc/modules-objc-property/main.m --- a/lldb/test/API/lang/objc/modules-objc-property/main.m +++ b/lldb/test/API/lang/objc/modules-objc-property/main.m @@ -1,4 +1,4 @@ -@import Foundation; +@import ObjectiveC; @import myModule; int main() { diff --git a/lldb/test/API/lang/objc/modules-objc-property/myModule.h b/lldb/test/API/lang/objc/modules-objc-property/myModule.h --- a/lldb/test/API/lang/objc/modules-objc-property/myModule.h +++ b/lldb/test/API/lang/objc/modules-objc-property/myModule.h @@ -1,7 +1,7 @@ #ifndef MYMODULE #define MYMODULE -@import Foundation; +@import ObjectiveC; @interface MyClass : NSObject - (int) propConflict; diff --git a/lldb/test/API/lang/objc/objc-ivar-offsets/Makefile b/lldb/test/API/lang/objc/objc-ivar-offsets/Makefile --- a/lldb/test/API/lang/objc/objc-ivar-offsets/Makefile +++ b/lldb/test/API/lang/objc/objc-ivar-offsets/Makefile @@ -1,4 +1,4 @@ OBJC_SOURCES := objc-ivar-offsets.m main.m -LD_EXTRAS := -lobjc -framework Foundation +LD_EXTRAS := -lobjc include Makefile.rules diff --git a/lldb/test/API/lang/objc/objc-ivar-offsets/objc-ivar-offsets.h b/lldb/test/API/lang/objc/objc-ivar-offsets/objc-ivar-offsets.h --- a/lldb/test/API/lang/objc/objc-ivar-offsets/objc-ivar-offsets.h +++ b/lldb/test/API/lang/objc/objc-ivar-offsets/objc-ivar-offsets.h @@ -1,4 +1,5 @@ -#import +#import +#import @interface BaseClass : NSObject { diff --git a/lldb/test/API/lang/objc/objc-super/Makefile b/lldb/test/API/lang/objc/objc-super/Makefile --- a/lldb/test/API/lang/objc/objc-super/Makefile +++ b/lldb/test/API/lang/objc/objc-super/Makefile @@ -1,4 +1,4 @@ OBJC_SOURCES := class.m -LD_EXTRAS := -lobjc -framework Foundation +LD_EXTRAS := -lobjc include Makefile.rules diff --git a/lldb/test/API/lang/objc/objc-super/class.m b/lldb/test/API/lang/objc/objc-super/class.m --- a/lldb/test/API/lang/objc/objc-super/class.m +++ b/lldb/test/API/lang/objc/objc-super/class.m @@ -1,4 +1,4 @@ -#import +#import @interface Foo : NSObject { } diff --git a/lldb/test/API/lang/objcxx/class-name-clash/myobject.mm b/lldb/test/API/lang/objcxx/class-name-clash/myobject.mm --- a/lldb/test/API/lang/objcxx/class-name-clash/myobject.mm +++ b/lldb/test/API/lang/objcxx/class-name-clash/myobject.mm @@ -1,4 +1,4 @@ -#import +#import @interface MyObject : NSObject @end diff --git a/lldb/test/API/python_api/class_members/main.mm b/lldb/test/API/python_api/class_members/main.mm --- a/lldb/test/API/python_api/class_members/main.mm +++ b/lldb/test/API/python_api/class_members/main.mm @@ -1,4 +1,4 @@ -#import +#import class Base { public: diff --git a/lldb/test/API/python_api/objc_type/Makefile b/lldb/test/API/python_api/objc_type/Makefile --- a/lldb/test/API/python_api/objc_type/Makefile +++ b/lldb/test/API/python_api/objc_type/Makefile @@ -1,8 +1,5 @@ OBJC_SOURCES := main.m - CFLAGS_EXTRAS := -w +LD_EXTRAS := -lobjc - - -LD_EXTRAS := -framework Foundation include Makefile.rules diff --git a/lldb/test/API/python_api/objc_type/main.m b/lldb/test/API/python_api/objc_type/main.m --- a/lldb/test/API/python_api/objc_type/main.m +++ b/lldb/test/API/python_api/objc_type/main.m @@ -1,4 +1,4 @@ -#import +#import @interface Foo: NSObject {}