diff options
author | Bill Wendling <isanbard@gmail.com> | 2007-01-24 03:38:14 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2007-01-24 03:38:14 +0000 |
commit | 8f5159e6b225356bd9c07c7040bab002b8707c0a (patch) | |
tree | 9b465d052398ea0090a4bd7354b45be6cee29f0d | |
parent | 40fab4088ef79e0a27b153449419405e026c34f1 (diff) | |
download | external_llvm-8f5159e6b225356bd9c07c7040bab002b8707c0a.tar.gz external_llvm-8f5159e6b225356bd9c07c7040bab002b8707c0a.tar.bz2 external_llvm-8f5159e6b225356bd9c07c7040bab002b8707c0a.zip |
A virtual method to return the TargetMachOWriterInfo object. This returns
a real value in derived classes, of course.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33477 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetMachine.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index 13b0d37d5b..f5cbed3811 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -34,6 +34,7 @@ class Module; class FunctionPassManager; class PassManager; class Pass; +struct TargetMachOWriterInfo; // Relocation model types. namespace Reloc { @@ -143,6 +144,11 @@ public: 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(); |