Author: Dave Lee Date: 2021-04-04T20:04:26-07:00 New Revision: 10ed479d7303af7c6e2528185c7e7cd318c9172c
URL: https://github.com/llvm/llvm-project/commit/10ed479d7303af7c6e2528185c7e7cd318c9172c DIFF: https://github.com/llvm/llvm-project/commit/10ed479d7303af7c6e2528185c7e7cd318c9172c.diff LOG: [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 Added: Modified: lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py lldb/test/API/lang/objc/modules-app-update/foo.m Removed: ################################################################################ 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 29c4872e02616..45870e8a0dce8 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 @@ def test_rebuild_app_modules_untouched(self): """) 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 83a5abc04e290..f9f244c0cfb0d 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 { _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits