From 6460becced5303637bb00d342f168710abde7134 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 15 May 2006 17:25:05 +0000 Subject: [PATCH] Improve comments, patch provided by Vladimir Prus! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28305 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetMachineRegistry.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/llvm/Target/TargetMachineRegistry.h b/include/llvm/Target/TargetMachineRegistry.h index 55cc9581777..dd3ed7da966 100644 --- a/include/llvm/Target/TargetMachineRegistry.h +++ b/include/llvm/Target/TargetMachineRegistry.h @@ -70,7 +70,13 @@ namespace llvm { /// RegisterTarget - This class is used to make targets automatically register /// themselves with the tool they are linked. Targets should define an /// instance of this and implement the static methods described in the - /// TargetMachine comments.. + /// TargetMachine comments. + /// The type 'TargetMachineImpl' should provide a constructor with two + /// parameters: + /// - const Module& M: the module that is being compiled: + /// - const std::string& FS: target-specific string describing target + /// flavour. + template struct RegisterTarget : public TargetMachineRegistry::Entry { RegisterTarget(const char *Name, const char *ShortDesc) : -- 2.11.0