[arc] Update TargetInfo to include the new backend name argument
authorDaniel Sanders <daniel_l_sanders@apple.com>
Thu, 16 Nov 2017 19:10:26 +0000 (19:10 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Thu, 16 Nov 2017 19:10:26 +0000 (19:10 +0000)
Also update a comment about the usage of RegisterTarget() that didn't mention
the new argument.

llvm-svn: 318441

llvm/include/llvm/Support/TargetRegistry.h
llvm/lib/Target/ARC/TargetInfo/ARCTargetInfo.cpp

index 6e36d2f..bd096e2 100644 (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>
index e94a373..460b0a9 100644 (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");
 }