diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-04-16 18:21:19 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-04-16 18:21:19 +0000 |
commit | f4910132078b4b8852fc46657f3150ed472f4654 (patch) | |
tree | fc2331f210330aa00327aadda349b6efb4848a11 /lib/CodeGen/CodeGenModule.cpp | |
parent | 007149a87f9d4c4b2c7301c0296bbcc9b04b043b (diff) |
[Modules] Convert module specific -fno-modules-autolink into -fno-autolink.
- There is no reason to have a modules specific flag for disabling
autolinking. Instead, convert the existing flag into -fno-autolink (which
should cover other autolinking code generation paths like #pragmas if and
when we support them).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179612 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 5893814d7a..7990a491c0 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -189,7 +189,7 @@ void CodeGenModule::Release() { EmitStaticExternCAliases(); EmitLLVMUsed(); - if (CodeGenOpts.ModulesAutolink) { + if (CodeGenOpts.Autolink && Context.getLangOpts().Modules) { EmitModuleLinkOptions(); } |