[llvm-commits] CVS: llvm/include/llvm/Target/TargetMachine.h

Bill Wendling isanbard at gmail.com
Fri Jan 26 18:55:20 PST 2007



Changes in directory llvm/include/llvm/Target:

TargetMachine.h updated: 1.74 -> 1.75
---
Log message:

Accessor for the TargetELFWriterInfo class object.


---
Diffs of the changes:  (+7 -1)

 TargetMachine.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletion(-)


Index: llvm/include/llvm/Target/TargetMachine.h
diff -u llvm/include/llvm/Target/TargetMachine.h:1.74 llvm/include/llvm/Target/TargetMachine.h:1.75
--- llvm/include/llvm/Target/TargetMachine.h:1.74	Tue Jan 23 21:38:14 2007
+++ llvm/include/llvm/Target/TargetMachine.h	Fri Jan 26 20:55:04 2007
@@ -34,7 +34,8 @@
 class FunctionPassManager;
 class PassManager;
 class Pass;
-struct TargetMachOWriterInfo;
+class TargetMachOWriterInfo;
+class TargetELFWriterInfo;
 
 // Relocation model types.
 namespace Reloc {
@@ -149,6 +150,11 @@
   /// 
   virtual const TargetMachOWriterInfo *getMachOWriterInfo() const { return 0; }
 
+  /// getELFWriterInfo - If this target supports an ELF writer, return
+  /// information for it, otherwise return null.
+  /// 
+  virtual const TargetELFWriterInfo *getELFWriterInfo() const { return 0; }
+
   /// getRelocationModel - Returns the code generation relocation model. The
   /// choices are static, PIC, and dynamic-no-pic, and target default.
   static Reloc::Model getRelocationModel();






More information about the llvm-commits mailing list