Add a helper getSymbol to AsmPrinter.