How to get rid of a cough while pregnant

I've had a cough for a good 2 weeks and can't seem to get rid of it anything I can take