Fix pr18235.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 13 Dec 2013 16:05:32 +0000 (16:05 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 13 Dec 2013 16:05:32 +0000 (16:05 +0000)
commit7b3aa0356d935af1301cdf7f4a6cd928edeac4b7
treeb12565e2605f1293fa1fecdaf4dd6abc2806d363
parent584940e3c65aca9e8329cae7b3ffda8ea51da81d
Fix pr18235.

The cpp backend is not a reasonable fallback for a missing target. It is a
very special backend, so it is reasonable to use it only if explicitly
requested.

While at it, simplify the interface a bit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197241 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/TargetRegistry.h
lib/Support/TargetRegistry.cpp
lib/Target/CppBackend/TargetInfo/CppBackendTargetInfo.cpp
test/CodeGen/Generic/no-target.ll [new file with mode: 0644]