Where is the lump exactly?
Is it near the groin?
Is the swelling sometimes disappearing like when you lay down etc.,?
It could be inguinal hernia
which is because of the cough
If the swelling is constant and below the mid thigh it may not be a hernia..
Consult a surgeon for a proper evaluation and treatment accordingly...
Hope this information helps...Take care...