[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
This commit is contained in:
Dave Lee 2021-04-04 08:28:10 -07:00
parent 4708a05da0
commit 10ed479d73
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -1,4 +1,4 @@
@import Foundation;
@import ObjectiveC;
@import Foo;
@implementation Foo
+(instancetype)init {