[arc] Update TargetInfo to include the new backend name argument

Also update a comment about the usage of RegisterTarget() that didn't mention
the new argument.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318441 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Sanders 2017-11-16 19:10:26 +00:00
parent 549203e435
commit 4c98672343
2 changed files with 2 additions and 2 deletions

View File

@ -890,7 +890,7 @@ struct TargetRegistry {
/// }
/// extern "C" void LLVMInitializeFooTargetInfo() {
/// RegisterTarget<Triple::foo> X(getTheFooTarget(), "foo", "Foo
/// description");
/// description", "Foo" /* Backend Name */);
/// }
template <Triple::ArchType TargetArchType = Triple::UnknownArch,
bool HasJIT = false>

View File

@ -18,5 +18,5 @@ Target &llvm::getTheARCTarget() {
}
extern "C" void LLVMInitializeARCTargetInfo() {
RegisterTarget<Triple::arc> X(getTheARCTarget(), "arc", "ARC");
RegisterTarget<Triple::arc> X(getTheARCTarget(), "arc", "ARC", "ARC");
}