A Last Resort to Quiet Your Cough When all else fails, your doctor may treat your allergies and coughing by giving you a strong prescription medication containing codeine or other drugs that can help to control the symptoms, especially during times when your allergic reaction is at its peak.