summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-01-16 01:23:41 +0000
committerDouglas Gregor <dgregor@apple.com>2013-01-16 01:23:41 +0000
commitc60437fb89fee2bd595887ae5346938b62c53a71 (patch)
treedf62d727752cf00258a6041da15779462f06e968 /clang/lib/CodeGen/CodeGenModule.cpp
parent91a3190a2817709911feecedf63657cc122a3e09 (diff)
downloadbcm5719-llvm-c60437fb89fee2bd595887ae5346938b62c53a71.tar.gz
bcm5719-llvm-c60437fb89fee2bd595887ae5346938b62c53a71.zip
Add -fmodules-autolink/-fno-modules-autolink (defaults to on) so that
users can explicitly enable/disable modules autolinking. llvm-svn: 172592
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index b1bdc0fb7a2..38f457ada69 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -173,7 +173,10 @@ void CodeGenModule::Release() {
EmitCtorList(GlobalDtors, "llvm.global_dtors");
EmitGlobalAnnotations();
EmitLLVMUsed();
- EmitModuleLinkOptions();
+
+ if (CodeGenOpts.ModulesAutolink) {
+ EmitModuleLinkOptions();
+ }
SimplifyPersonality();
OpenPOWER on IntegriCloud