The Western concept of illegitimacy is not part of Judaism. A child's parents whether they were wed or not are responsible for the care and raising of the child, thats about it whether or not the parents were married doesnt abrogate the Mitzvot related to raising the child.