Hi all
I'm in need of something more fine grained that the kind() method on File. It can only distinguish .o, .so, and .a, but I need to know if, for example, a File* is a MachOFile vs another subclass of SimpleFile like CEntryFile.
This patch is a preliminary implementation which only adds enough to get isa<> to work on MachOFile. If you are all happy with the direction then i'll add support for all of the subclasses of File so that we can do isa<> on anything in the tree.
Alternatively, if only SimpleFile is expected to have interesting subclasses, then i could instead add a SubKind field to SimpleFile instead of changing kind() in File. (BTW, I don't intend for kindUnknownObject to be around for long. If I can do isa<> on all the subclasses then each subclass will have its own entry).
Feedback welcome.
Thanks,
Pete