class FunctionPassManager;
class PassManager;
class Pass;
-struct TargetMachOWriterInfo;
+class TargetMachOWriterInfo;
+class TargetELFWriterInfo;
// Relocation model types.
namespace Reloc {
///
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();