Anvil is the thing you are almost always happy to see lying down on the map. It appears not very often, and even less often in Hard Mode (but more often with Collector perk). When picked, you going to be offered 3 random weapon upgrades, one of which most certainly will suit your current situation. If your weapon is already upgraded, these bonuses won't be generated. You can find the list of all weapon upgrades here.
⇦ Back to the list of bonuses