diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-01-16 01:23:41 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-01-16 01:23:41 +0000 |
commit | c60437fb89fee2bd595887ae5346938b62c53a71 (patch) | |
tree | df62d727752cf00258a6041da15779462f06e968 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 91a3190a2817709911feecedf63657cc122a3e09 (diff) | |
download | bcm5719-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.cpp | 5 |
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(); |