136ac495dSmrg/* The implementation of class Object for Objective-C. 2*8feb0f0bSmrg Copyright (C) 1993-2020 Free Software Foundation, Inc. 336ac495dSmrg 436ac495dSmrgThis file is part of GCC. 536ac495dSmrg 636ac495dSmrgGCC is free software; you can redistribute it and/or modify it 736ac495dSmrgunder the terms of the GNU General Public License as published by the 836ac495dSmrgFree Software Foundation; either version 3, or (at your option) any 936ac495dSmrglater version. 1036ac495dSmrg 1136ac495dSmrgGCC is distributed in the hope that it will be useful, but WITHOUT 1236ac495dSmrgANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1336ac495dSmrgFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 1436ac495dSmrgLicense for more details. 1536ac495dSmrg 1636ac495dSmrgUnder Section 7 of GPL version 3, you are granted additional 1736ac495dSmrgpermissions described in the GCC Runtime Library Exception, version 1836ac495dSmrg3.1, as published by the Free Software Foundation. 1936ac495dSmrg 2036ac495dSmrgYou should have received a copy of the GNU General Public License and 2136ac495dSmrga copy of the GCC Runtime Library Exception along with this program; 2236ac495dSmrgsee the files COPYING3 and COPYING.RUNTIME respectively. If not, see 2336ac495dSmrg<http://www.gnu.org/licenses/>. */ 2436ac495dSmrg 2536ac495dSmrg#include "objc-private/common.h" 2636ac495dSmrg#include "objc/Object.h" 2736ac495dSmrg#include "objc/runtime.h" 2836ac495dSmrg 2936ac495dSmrg@implementation Object 3036ac495dSmrg 3136ac495dSmrg- (Class)class 3236ac495dSmrg{ 3336ac495dSmrg return object_getClass (self); 3436ac495dSmrg} 3536ac495dSmrg 3636ac495dSmrg- (BOOL)isEqual: (id)anObject 3736ac495dSmrg{ 3836ac495dSmrg return self == anObject; 3936ac495dSmrg} 4036ac495dSmrg 4136ac495dSmrg@end 42