MIR Printer: Use a module slot tracker to print global address operands. NFC.
authorAlex Lorenz <arphaman@gmail.com>
Tue, 7 Jul 2015 23:27:53 +0000 (23:27 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 7 Jul 2015 23:27:53 +0000 (23:27 +0000)
commitaa0d6db1e74e8eabf4a4eb2715746bc9a7e17d34
tree1782014fa158a26291fb0b4974879206f99344d7
parent4fe74caa61ff0a7b08c98a070fd1e4b85d4d9b7f
MIR Printer: Use a module slot tracker to print global address operands. NFC.

This commit adopts the 'ModuleSlotTracker' class, which was surfaced in r240842,
to print the global address operands. This change ensures that the slot tracker
won't have to be recreated every time a global address operand is printed,
making the MIR printing more efficient.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241645 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MIRPrinter.cpp