summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-06-12 20:10:48 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-06-12 20:10:48 +0000
commit89061b2224456b46fb09a62533687dd3bf746afa (patch)
tree30716f798fdb25531fe7c4790d84f0b272bcae50 /llvm/lib/CodeGen/AsmPrinter
parent30b2c6bdb7e87b0fbcfcf17898dba1d2e982d5b3 (diff)
downloadbcm5719-llvm-89061b2224456b46fb09a62533687dd3bf746afa.tar.gz
bcm5719-llvm-89061b2224456b46fb09a62533687dd3bf746afa.zip
IR: Replace the "Linker Options" module flag with "llvm.linker.options" named metadata.
The new metadata is easier to manipulate than module flags. Differential Revision: https://reviews.llvm.org/D31349 llvm-svn: 305227
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 407d5623d67..ad348d723ba 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1286,11 +1286,7 @@ bool AsmPrinter::doFinalization(Module &M) {
const TargetLoweringObjectFile &TLOF = getObjFileLowering();
- // Emit module flags.
- SmallVector<Module::ModuleFlagEntry, 8> ModuleFlags;
- M.getModuleFlagsMetadata(ModuleFlags);
- if (!ModuleFlags.empty())
- TLOF.emitModuleFlags(*OutStreamer, ModuleFlags, TM);
+ TLOF.emitModuleMetadata(*OutStreamer, M, TM);
if (TM.getTargetTriple().isOSBinFormatELF()) {
MachineModuleInfoELF &MMIELF = MMI->getObjFileInfo<MachineModuleInfoELF>();
OpenPOWER on IntegriCloud