diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-02-14 21:28:13 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-02-14 21:28:13 +0000 |
commit | b464d3ff72790260e8c2068afe856fd7299a6834 (patch) | |
tree | 20b2297bfeef0c8dfcfc9d5ec383bca0c2a71ad4 /include/llvm/CodeGen | |
parent | 03698deb25215bf3b4aa2e3ff731ea38923a928c (diff) | |
download | external_llvm-b464d3ff72790260e8c2068afe856fd7299a6834.zip external_llvm-b464d3ff72790260e8c2068afe856fd7299a6834.tar.gz external_llvm-b464d3ff72790260e8c2068afe856fd7299a6834.tar.bz2 |
Add code to the target lowering object file module to handle module flags.
The MachO back-end needs to emit the garbage collection flags specified in the
module flags. This is a WIP, so the front-end hasn't been modified to emit these
flags just yet. Documentation and front-end switching to occur soon.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/TargetLoweringObjectFileImpl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h b/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h index 2a02265..94b7cf4 100644 --- a/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h +++ b/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h @@ -78,6 +78,11 @@ class TargetLoweringObjectFileMachO : public TargetLoweringObjectFile { public: virtual ~TargetLoweringObjectFileMachO() {} + /// emitModuleFlags - Emit the module flags that specify the garbage + /// collection information. + virtual void emitModuleFlags(MCStreamer &Streamer, NamedMDNode *ModFlags, + Mangler *Mang, const TargetMachine &TM) const; + virtual const MCSection * SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const; |