From 10ed479d7303af7c6e2528185c7e7cd318c9172c Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Sun, 4 Apr 2021 08:28:10 -0700 Subject: [PATCH] [lldb] Import ObjectiveC module instead of Foundation in test 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 Differential Revision: https://reviews.llvm.org/D99859 --- .../lang/objc/modules-app-update/TestClangModulesAppUpdate.py | 2 +- lldb/test/API/lang/objc/modules-app-update/foo.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py b/lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py index 29c4872e0261..45870e8a0dce 100644 --- a/lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py +++ b/lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py @@ -20,7 +20,7 @@ class TestClangModuleAppUpdate(TestBase): """) with open(self.getBuildArtifact("f.h"), "w") as f: f.write(""" - @import Foundation; + @import ObjectiveC; @interface Foo : NSObject { int i; } diff --git a/lldb/test/API/lang/objc/modules-app-update/foo.m b/lldb/test/API/lang/objc/modules-app-update/foo.m index 83a5abc04e29..f9f244c0cfb0 100644 --- a/lldb/test/API/lang/objc/modules-app-update/foo.m +++ b/lldb/test/API/lang/objc/modules-app-update/foo.m @@ -1,4 +1,4 @@ -@import Foundation; +@import ObjectiveC; @import Foo; @implementation Foo +(instancetype)init {