[PATCH] Pass -mglobal-merge as a module flag metadata.

Ahmed Bougacha ahmed.bougacha at gmail.com
Mon Mar 2 09:55:18 PST 2015


- Only emit flag when GlobalMerge is disabled (per Akira and Duncan's reviews)

I added a target check to only emit the flags on ARM/AArch64.  I'm fine with emitting the flag no matter the target, if desired (less brittle), but I personally don't like adding noise to every module ever, hence hiding it.


http://reviews.llvm.org/D7968

Files:
  include/clang/Driver/Options.td
  lib/CodeGen/BackendUtil.cpp
  lib/CodeGen/CodeGenModule.cpp
  lib/CodeGen/CodeGenModule.h
  lib/Driver/Tools.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/CodeGen/global-merge.c
  test/Driver/mglobal-merge.c
  test/Driver/mno-global-merge.c

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7968.21014.patch
Type: text/x-patch
Size: 7580 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150302/2f8f578d/attachment.bin>


More information about the cfe-commits mailing list