OSDN Git Service

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)
commitc8be244db70dfc071528c5b4e9387df91f2b0031
tree69f8902a54b291fe28223d001720c58999922891
parent5f10af2b53273de02d38201844b5855994ba2cea
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235774 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/AsmWriter.cpp