summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-15 17:25:05 +0000
committerChris Lattner <sabre@nondot.org>2006-05-15 17:25:05 +0000
commit6460becced5303637bb00d342f168710abde7134 (patch)
treee0690209ef76a22617d1a905a27500b3c5f3c7ee
parentf1925cb05c0bab13cb79e1075389bb580c7f7d4a (diff)
downloadllvm-6460becced5303637bb00d342f168710abde7134.tar.gz
llvm-6460becced5303637bb00d342f168710abde7134.tar.bz2
llvm-6460becced5303637bb00d342f168710abde7134.tar.xz
Improve comments, patch provided by Vladimir Prus!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28305 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetMachineRegistry.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetMachineRegistry.h b/include/llvm/Target/TargetMachineRegistry.h
index 55cc958177..dd3ed7da96 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<class TargetMachineImpl>
struct RegisterTarget : public TargetMachineRegistry::Entry {
RegisterTarget(const char *Name, const char *ShortDesc) :