AsmWriter: Only collect attachment names once per module
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Apr 2015 21:03:05 +0000 (21:03 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Apr 2015 21:03:05 +0000 (21:03 +0000)
commite30f10e6711b57e076b54d01049b63823dd9b441
treea8867bddbfa4379d9b4e5573b77e0f4490d0118e
parent5e5524bc25c3f6bf3d829b40ddb2a52011effadc
AsmWriter: Only collect attachment names once per module

Collect metadata names once per `AssemblyWriter` instead of every time
we need to print some attachments.  Just a drive-by; this caught my eye
while I was refactoring the code in r235772.

llvm-svn: 235774
llvm/lib/IR/AsmWriter.cpp