[llvm-commits] CVS: llvm/include/llvm/Target/TargetMachine.h
Bill Wendling
isanbard at gmail.com
Tue Jan 23 19:38:30 PST 2007
Changes in directory llvm/include/llvm/Target:
TargetMachine.h updated: 1.73 -> 1.74
---
Log message:
A virtual method to return the TargetMachOWriterInfo object. This returns
a real value in derived classes, of course.
---
Diffs of the changes: (+6 -0)
TargetMachine.h | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/include/llvm/Target/TargetMachine.h
diff -u llvm/include/llvm/Target/TargetMachine.h:1.73 llvm/include/llvm/Target/TargetMachine.h:1.74
--- llvm/include/llvm/Target/TargetMachine.h:1.73 Wed Jan 17 03:06:13 2007
+++ llvm/include/llvm/Target/TargetMachine.h Tue Jan 23 21:38:14 2007
@@ -34,6 +34,7 @@
class FunctionPassManager;
class PassManager;
class Pass;
+struct TargetMachOWriterInfo;
// Relocation model types.
namespace Reloc {
@@ -143,6 +144,11 @@
return InstrItineraryData();
}
+ /// getMachOWriterInfo - If this target supports a Mach-O writer, return
+ /// information for it, otherwise return null.
+ ///
+ virtual const TargetMachOWriterInfo *getMachOWriterInfo() 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