kastiglione created this revision.
kastiglione added a reviewer: teemperor.
kastiglione requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

Use `@import ObjectiveC` instead of `@import Foundation`, as the former is all
that's needed, and results in fewer clang modules being built.

This results in the following clang modules *not* being built for this test.

ApplicationServices
CFNetwork
ColorSync
CoreFoundation
CoreGraphics
CoreServices
CoreText
DiskArbitration
Dispatch
Foundation
IOKit
ImageIO
Security
XPC
_Builtin_intrinsics
launch
libkern
os_object
os_workgroup


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99859

Files:
  lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py
  lldb/test/API/lang/objc/modules-app-update/foo.m


Index: lldb/test/API/lang/objc/modules-app-update/foo.m
===================================================================
--- lldb/test/API/lang/objc/modules-app-update/foo.m
+++ lldb/test/API/lang/objc/modules-app-update/foo.m
@@ -1,4 +1,4 @@
-@import Foundation;
+@import ObjectiveC;
 @import Foo;
 @implementation Foo
 +(instancetype)init {
Index: lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py
===================================================================
--- lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py
+++ lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py
@@ -20,7 +20,7 @@
                     """)
         with open(self.getBuildArtifact("f.h"), "w") as f:
             f.write("""
-                    @import Foundation;
+                    @import ObjectiveC;
                     @interface Foo : NSObject {
                        int i;
                     }


Index: lldb/test/API/lang/objc/modules-app-update/foo.m
===================================================================
--- lldb/test/API/lang/objc/modules-app-update/foo.m
+++ lldb/test/API/lang/objc/modules-app-update/foo.m
@@ -1,4 +1,4 @@
-@import Foundation;
+@import ObjectiveC;
 @import Foo;
 @implementation Foo
 +(instancetype)init {
Index: lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py
===================================================================
--- lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py
+++ lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py
@@ -20,7 +20,7 @@
                     """)
         with open(self.getBuildArtifact("f.h"), "w") as f:
             f.write("""
-                    @import Foundation;
+                    @import ObjectiveC;
                     @interface Foo : NSObject {
                        int i;
                     }
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to