summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2013-04-25 19:34:41 +0000
committerReid Kleckner <reid@kleckner.net>2013-04-25 19:34:41 +0000
commitd973ca3c515e1ee46f05c10a0275e3f5d8f9dea8 (patch)
treefd99e46bcf3543c55f859c3d5e24d860e683323c /llvm/include
parentb770f897eed1f9b8666f361641c1a09eaaa63f75 (diff)
downloadbcm5719-llvm-d973ca3c515e1ee46f05c10a0275e3f5d8f9dea8.tar.gz
bcm5719-llvm-d973ca3c515e1ee46f05c10a0275e3f5d8f9dea8.zip
[mc-coff] Forward Linker Option flags into the .drectve section
Summary: This is modelled on the Mach-O linker options implementation and should support a Clang implementation of #pragma comment(lib/linker). Reviewers: rafael CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D724 llvm-svn: 180569
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h b/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
index e7098e48bf0..5b22c9c685a 100644
--- a/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
+++ b/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
@@ -128,6 +128,12 @@ public:
virtual const MCSection *
SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
Mangler *Mang, const TargetMachine &TM) const;
+
+ /// emitModuleFlags - Emit Obj-C garbage collection and linker options. Only
+ /// linker option emission is implemented for COFF.
+ virtual void emitModuleFlags(MCStreamer &Streamer,
+ ArrayRef<Module::ModuleFlagEntry> ModuleFlags,
+ Mangler *Mang, const TargetMachine &TM) const;
};
} // end namespace llvm
OpenPOWER on IntegriCloud