[CodeGen] Generalize MachineFunctionProperties::print comma handling.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 2 Aug 2016 14:42:57 +0000 (14:42 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 2 Aug 2016 14:42:57 +0000 (14:42 +0000)
commitc8454a77c18f9e70ca19aa1bcbbe2dce1dc133f4
tree0f7065a158fa933d0074845b450fe5c1faa1149e
parented581eac6acca8048124f2e51d68e92f7c1d934b
[CodeGen] Generalize MachineFunctionProperties::print comma handling.

This is only used for debug prints, but the previous hardcoded ", "
caused it to be printed unnecessarily when OnlySet, and is annoying
when adding new properties.

llvm-svn: 277465
llvm/lib/CodeGen/MachineFunction.cpp