Changes in directory llvm/include/llvm/Target:
TargetMachineRegistry.h updated: 1.8 -> 1.9 --- Log message: Improve comments, patch provided by Vladimir Prus! --- Diffs of the changes: (+7 -1) TargetMachineRegistry.h | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletion(-) Index: llvm/include/llvm/Target/TargetMachineRegistry.h diff -u llvm/include/llvm/Target/TargetMachineRegistry.h:1.8 llvm/include/llvm/Target/TargetMachineRegistry.h:1.9 --- llvm/include/llvm/Target/TargetMachineRegistry.h:1.8 Wed Mar 22 23:41:41 2006 +++ llvm/include/llvm/Target/TargetMachineRegistry.h Mon May 15 12:25:05 2006 @@ -70,7 +70,13 @@ /// 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<class TargetMachineImpl> struct RegisterTarget : public TargetMachineRegistry::Entry { RegisterTarget(const char *Name, const char *ShortDesc) : _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits