Robitussin DM while pregnant

I have a bad cough and I checked the medicine list from my OB and he said it is fine to take Robitussin DM, but I searched here and there are SO MANY people saying NOT to take it. I trust my OB but wanted to hear your opinion.

I am 29 weeks