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

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 16 11:10:26 PST 2017


Author: dsanders
Date: Thu Nov 16 11:10:26 2017
New Revision: 318441

URL: http://llvm.org/viewvc/llvm-project?rev=318441&view=rev
Log:
[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.


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

Modified: llvm/trunk/include/llvm/Support/TargetRegistry.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/TargetRegistry.h?rev=318441&r1=318440&r2=318441&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/TargetRegistry.h (original)
+++ llvm/trunk/include/llvm/Support/TargetRegistry.h Thu Nov 16 11:10:26 2017
@@ -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>

Modified: llvm/trunk/lib/Target/ARC/TargetInfo/ARCTargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARC/TargetInfo/ARCTargetInfo.cpp?rev=318441&r1=318440&r2=318441&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARC/TargetInfo/ARCTargetInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARC/TargetInfo/ARCTargetInfo.cpp Thu Nov 16 11:10:26 2017
@@ -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");
 }




More information about the llvm-commits mailing list