diff options
Diffstat (limited to 'include/llvm/Target/TargetMachineRegistry.h')
-rw-r--r-- | include/llvm/Target/TargetMachineRegistry.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/llvm/Target/TargetMachineRegistry.h b/include/llvm/Target/TargetMachineRegistry.h index 2607ad5e63..d14308547e 100644 --- a/include/llvm/Target/TargetMachineRegistry.h +++ b/include/llvm/Target/TargetMachineRegistry.h @@ -22,14 +22,14 @@ namespace llvm { class Module; class TargetMachine; - + struct TargetMachineRegistryEntry { const char *Name; const char *ShortDesc; TargetMachine *(*CtorFn)(const Module &, const std::string &); unsigned (*ModuleMatchQualityFn)(const Module &M); unsigned (*JITMatchQualityFn)(); - + public: TargetMachineRegistryEntry(const char *N, const char *SD, TargetMachine *(*CF)(const Module &, const std::string &), @@ -38,12 +38,12 @@ namespace llvm { : Name(N), ShortDesc(SD), CtorFn(CF), ModuleMatchQualityFn(MMF), JITMatchQualityFn(JMF) {} }; - + template<> class RegistryTraits<TargetMachine> { public: typedef TargetMachineRegistryEntry entry; - + static const char *nameof(const entry &Entry) { return Entry.Name; } static const char *descof(const entry &Entry) { return Entry.ShortDesc; } }; @@ -67,12 +67,12 @@ namespace llvm { /// themselves with the tool they are linked. Targets should define an /// instance of this and implement the static methods described in the /// TargetMachine comments. - /// The type 'TargetMachineImpl' should provide a constructor with two + /// 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 + /// - const std::string& FS: target-specific string describing target /// flavour. - + template<class TargetMachineImpl> struct RegisterTarget { RegisterTarget(const char *Name, const char *ShortDesc) @@ -85,7 +85,7 @@ namespace llvm { private: TargetMachineRegistry::entry Entry; TargetMachineRegistry::node Node; - + static TargetMachine *Allocator(const Module &M, const std::string &FS) { return new TargetMachineImpl(M, FS); } |