aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-09-03 18:44:26 +0000
committerChris Lattner <sabre@nondot.org>2006-09-03 18:44:26 +0000
commit07ac914973ebb484dd7ed1ad143934e14ad56e26 (patch)
tree7a685c2a25c1909b2d69da66ddadeba23dcd3a35 /include
parentc4fa386471cb1ff9d1f2acc24e2d0682e5a17b1b (diff)
downloadexternal_llvm-07ac914973ebb484dd7ed1ad143934e14ad56e26.zip
external_llvm-07ac914973ebb484dd7ed1ad143934e14ad56e26.tar.gz
external_llvm-07ac914973ebb484dd7ed1ad143934e14ad56e26.tar.bz2
Eliminate target name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30071 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetMachine.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h
index da6027c..8559386 100644
--- a/include/llvm/Target/TargetMachine.h
+++ b/include/llvm/Target/TargetMachine.h
@@ -62,18 +62,10 @@ namespace CodeModel {
/// 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 @@ public:
/// 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 @@ public:
/// 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.