[Lldb-commits] [PATCH] D99859: [lldb] Import ObjectiveC module instead of Foundation in test

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun Apr 4 08:31:24 PDT 2021


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 @@
- at import Foundation;
+ at 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;
                     }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99859.335145.patch
Type: text/x-patch
Size: 959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210404/11982c6c/attachment-0001.bin>


More information about the lldb-commits mailing list