mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Factor commonality in triple match routines into helper template for registering
classes, and migrate existing targets over. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77126 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,14 +14,6 @@ using namespace llvm;
|
||||
|
||||
Target llvm::TheCBackendTarget;
|
||||
|
||||
static unsigned CBackend_TripleMatchQuality(const std::string &TT) {
|
||||
// This class always works, but must be requested explicitly on
|
||||
// llc command line.
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" void LLVMInitializeCBackendTargetInfo() {
|
||||
TargetRegistry::RegisterTarget(TheCBackendTarget, "c",
|
||||
"C backend",
|
||||
&CBackend_TripleMatchQuality);
|
||||
RegisterTarget<> X(TheCBackendTarget, "c", "C backend");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user