Move createIRObjectFile to the IRObjectFile class and return the concrete type.