Changes in directory llvm/include/llvm/Target:
TargetMachine.h updated: 1.67 -> 1.68 --- Log message: Eliminate target name. --- Diffs of the changes: (+3 -14) TargetMachine.h | 17 +++-------------- 1 files changed, 3 insertions(+), 14 deletions(-) Index: llvm/include/llvm/Target/TargetMachine.h diff -u llvm/include/llvm/Target/TargetMachine.h:1.67 llvm/include/llvm/Target/TargetMachine.h:1.68 --- llvm/include/llvm/Target/TargetMachine.h:1.67 Wed Jul 26 16:12:04 2006 +++ llvm/include/llvm/Target/TargetMachine.h Sun Sep 3 13:44:26 2006 @@ -62,18 +62,10 @@ /// through this interface. /// class TargetMachine { - const std::string Name; - TargetMachine(const TargetMachine&); // DO NOT IMPLEMENT void operator=(const TargetMachine&); // DO NOT IMPLEMENT -protected: // Can only create subclasses... - TargetMachine(const std::string &name) : Name(name) { }; - - /// This constructor is used for targets that support arbitrary TargetData - /// layouts, like the C backend. It initializes the TargetData to match that - /// of the specified module. - /// - TargetMachine(const std::string &name, const Module &M); +protected: // Can only create subclasses. + TargetMachine() { } /// getSubtargetImpl - virtual method implemented by subclasses that returns /// a reference to that target's TargetSubtarget-derived member variable. @@ -94,9 +86,6 @@ /// will not be used unless an explicit -march option is used. static unsigned getJITMatchQuality() { return 0; } - - const std::string &getName() const { return Name; } - // Interfaces to the major aspects of target machine information: // -- Instruction opcode and operand information // -- Pipelines and scheduling information @@ -122,7 +111,7 @@ /// not, return null. This is kept separate from RegInfo until RegInfo has /// details of graph coloring register allocation removed from it. /// - virtual const MRegisterInfo* getRegisterInfo() const { return 0; } + virtual const MRegisterInfo *getRegisterInfo() const { return 0; } /// getJITInfo - If this target supports a JIT, return information for it, /// otherwise return null. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits