From 98b5795f6227fd31e6cd2852adf5a641ea1ce3be Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sat, 27 Jan 2007 02:55:04 +0000 Subject: [PATCH] Accessor for the TargetELFWriterInfo class object. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33572 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetMachine.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index f5cbed3811b..e1cd3351f4a 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -34,7 +34,8 @@ class Module; class FunctionPassManager; class PassManager; class Pass; -struct TargetMachOWriterInfo; +class TargetMachOWriterInfo; +class TargetELFWriterInfo; // Relocation model types. namespace Reloc { @@ -149,6 +150,11 @@ public: /// 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();