[lldb] Import ObjectiveC module instead of Foundation in test
authorDave Lee <davelee.com@gmail.com>
Sun, 4 Apr 2021 15:28:10 +0000 (08:28 -0700)
committerDave Lee <davelee.com@gmail.com>
Mon, 5 Apr 2021 03:04:26 +0000 (20:04 -0700)
commit10ed479d7303af7c6e2528185c7e7cd318c9172c
tree9e7a560eecc0051039abb73c90c39edc6ef5acfb
parent4708a05da03038271a1a2c1cbdfe78aebfaa7afc
[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
lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py
lldb/test/API/lang/objc/modules-app-update/foo.m