The patch for TargetInfo* TargetInfo::CreateTargetInfo(const std::string &T) by using Triple in Triple.cpp of llvm Support lib

By using Triple, and modify Triple, the function TargetInfo*
TargetInfo::CreateTargetInfo(const std::string &T)
changed to be more simple and clear.

tripleTargets.patch (5.78 KB)

Attached version fixes the formatting and a missing default case.
However, it doesn't build because it depends on a patch you submitted
to llvmdev.

-Eli

x.txt (5.58 KB)

Applied as r79320, thanks a bunch -- this has long been on my TODO list!

- Daniel