[llvm-commits] CVS: llvm/include/llvm/Target/TargetMachine.h TargetObjInfo.h
Bill Wendling
isanbard at gmail.com
Wed Jan 17 01:06:40 PST 2007
Changes in directory llvm/include/llvm/Target:
TargetMachine.h updated: 1.72 -> 1.73
TargetObjInfo.h (r1.1) removed
---
Log message:
Revert patch.
---
Diffs of the changes: (+3 -18)
TargetMachine.h | 21 +++------------------
1 files changed, 3 insertions(+), 18 deletions(-)
Index: llvm/include/llvm/Target/TargetMachine.h
diff -u llvm/include/llvm/Target/TargetMachine.h:1.72 llvm/include/llvm/Target/TargetMachine.h:1.73
--- llvm/include/llvm/Target/TargetMachine.h:1.72 Tue Jan 16 21:48:29 2007
+++ llvm/include/llvm/Target/TargetMachine.h Wed Jan 17 03:06:13 2007
@@ -21,7 +21,6 @@
namespace llvm {
class TargetAsmInfo;
-class TargetObjInfo;
class TargetData;
class TargetSubtarget;
class TargetInstrInfo;
@@ -67,7 +66,7 @@
TargetMachine(const TargetMachine &); // DO NOT IMPLEMENT
void operator=(const TargetMachine &); // DO NOT IMPLEMENT
protected: // Can only create subclasses.
- TargetMachine() : AsmInfo(NULL), ObjInfo(NULL) { }
+ TargetMachine() : AsmInfo(NULL) { }
/// getSubtargetImpl - virtual method implemented by subclasses that returns
/// a reference to that target's TargetSubtarget-derived member variable.
@@ -76,19 +75,11 @@
/// AsmInfo - Contains target specific asm information.
///
mutable const TargetAsmInfo *AsmInfo;
-
+
/// createTargetAsmInfo - Create a new instance of target specific asm
/// information.
virtual const TargetAsmInfo *createTargetAsmInfo() const { return NULL; }
- /// ObjInfo - Contains target specific object file information.
- ///
- mutable const TargetObjInfo *ObjInfo;
-
- /// createTargetObjInfo - Create a new instance of target specific object
- /// information.
- virtual const TargetObjInfo *createTargetObjInfo() const { return NULL; }
-
public:
virtual ~TargetMachine();
@@ -116,6 +107,7 @@
virtual TargetLowering *getTargetLowering() const { return 0; }
virtual const TargetData *getTargetData() const { return 0; }
+
/// getTargetAsmInfo - Return target specific asm information.
///
const TargetAsmInfo *getTargetAsmInfo() const {
@@ -123,13 +115,6 @@
return AsmInfo;
}
- /// getTargetObjInfo - Return target specific object information.
- ///
- const TargetObjInfo *getTargetObjInfo() const {
- if (!ObjInfo) ObjInfo = createTargetObjInfo();
- return ObjInfo;
- }
-
/// getSubtarget - This method returns a pointer to the specified type of
/// TargetSubtarget. In debug builds, it verifies that the object being
/// returned is of the correct type.
More information about the llvm-commits
mailing list