AsmWriterContext is a simple compound that stores TypePrinting, SlotTracker (i.e. "Machine" in AsmWriter), and Module instances -- three of the most commonly used objects in the AsmWriter infrastructure. Previously these three objects are passed as separate function arguments to most of the printer functions in this file. Tidying them up can bring easier code refactoring on printer functions in the future (e.g. when we want to pass additional objects to all printer functions).
This patch is used to prepare the next patch (D110113) in this series, which tries to print MDNode in tree shape.
NOTE: Theoretically, this patch should be NFC.
Can you add a Doxygen comment?