]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libobjc/linking.m
2019-06-19 Steven G. Kargl <kargl@gcc.gnu.org>
[thirdparty/gcc.git] / libobjc / linking.m
index fa31bdf3c96fb2a1a4cff6f4573a79922818e603..2915ab0304c552403264ae2cc79d58df88167a5d 100644 (file)
@@ -1,5 +1,5 @@
 /* Force linking of classes required by Objective C runtime.
-   Copyright (C) 1997, 2009 Free Software Foundation, Inc.
+   Copyright (C) 1997-2019 Free Software Foundation, Inc.
    Contributed by Ovidiu Predescu (ovidiu@net-community.com).
 
 This file is part of GCC.
@@ -23,17 +23,14 @@ a copy of the GCC Runtime Library Exception along with this program;
 see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 <http://www.gnu.org/licenses/>.  */
 
-
+#include "objc-private/common.h"
 #include <objc/Object.h>
-#include <objc/NXConstStr.h>
-
-/* Generate references to Object and NXConstanstString classes since they are
-   needed by the runtime system to run correctly. */
 
+/* Generate references to Object class since it is needed by the
+   runtime system to run correctly.  */
 
 void __objc_linking (void)
 {
-  [Object name];
-  [NXConstantString name];
+  [Object class];
 }