Fix PR1517:
authorReid Spencer <rspencer@reidspencer.com>
Sat, 16 Jun 2007 20:48:27 +0000 (20:48 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 16 Jun 2007 20:48:27 +0000 (20:48 +0000)
commita4d71f09ffdaee54e0728dac39f86113148197a3
tree0cb83f7d10a1f7f044dd147bb07c05b030abfc1f
parentab24b4cf70b9476b81808917c9f960c52b8980bf
Fix PR1517:
Use SmallPtrSet instead of std::vector to eliminate duplicate uses in a
function generated with -gen-function. This prevents the output from having
multiple duplicate declarations of constants and gvals.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37616 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm2cpp/CppWriter.cpp