summaryrefslogtreecommitdiff
path: root/libobjc/Object.m
diff options
context:
space:
mode:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-10 09:56:40 +0000
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-10 09:56:40 +0000
commit01eb761e3088d72508d2190978ad488cbb75c321 (patch)
treeaecc8134138b797706917530127f1a76bf0da100 /libobjc/Object.m
parentdd3eae968c619f0c174e985e7f40d963cc2b601d (diff)
downloadgcc-01eb761e3088d72508d2190978ad488cbb75c321.tar.gz
* libobjc/objc/deprecated: New directory.
* libobjc/objc/deprecated/README: New file. * libobjc/objc/README: New file. * libobjc/objc/typedstream.h: Moved into objc/deprecated/typedstream.h; objc/typedstream.h replaced with a placeholder including the file from the deprecated/ directory. * libobjc/objc/deprecated/objc-unexpected-exception.h: New file with the definition of _objc_unexpected_exception. * libobjc/objc/objc-api.h: Include deprecated/objc-unexcepted-exception.h instead of defining _objc_unexpected_exception. * libobjc/objc/deprecated/Object.h: New file with the deprecated Object methods in a 'Deprecated' category. * libobjc/objc/Object.h Include deprecated/Object.h instead of defining the deprecated methods. * libobjc/Object.m: Moved deprecated methods into 'Deprecated' category. * libobjc/objc-private: New directory. * libobjc/objc-private/README: New file. * libobjc/Makefile.in (OBJC_DEPRECATED_H): New variable. (install-headers): Create installation directory for OBJC_DEPRECATED_H headers, and install them. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164153 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/Object.m')
-rw-r--r--libobjc/Object.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/libobjc/Object.m b/libobjc/Object.m
index ead9c8d2119..377f0594d1b 100644
--- a/libobjc/Object.m
+++ b/libobjc/Object.m
@@ -343,6 +343,13 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
class_set_version(self, aVersion);
return self;
}
+@end
+
+/* The following methods were deprecated in GCC 4.6.0 and will be
+ removed in the next GCC release.
+*/
+
+@implementation Object (Deprecated)
+ (int)streamVersion: (TypedStream*)aStream
{