Move the logic for printing the registered targets into a static
authorChandler Carruth <chandlerc@gmail.com>
Fri, 22 Jul 2011 07:50:44 +0000 (07:50 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 22 Jul 2011 07:50:44 +0000 (07:50 +0000)
commit077c40871780136f7016a496703b20ebea9c0978
tree8e55f065c60cd866404e35344827b50211fa5796
parent6d51d26a2479069f85a7676f664d6f998fc49a16
Move the logic for printing the registered targets into a static
function on the TargetRegistry. Also clean it up and use the modern LLVM
utility libraries available instead of rolling a few things manually.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135756 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetRegistry.h
lib/Support/CommandLine.cpp
lib/Support/TargetRegistry.cpp