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 | e246fbe40bd86ce56fbb621aa414b5a5896441d2 (patch) | |
tree | 1946d39bed28d41a627e2da15724a9d18a462f21 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 0932a1ffff7c56e4785f4a04aff9ff6a14b50f8b (diff) | |
download | bcm5719-llvm-e246fbe40bd86ce56fbb621aa414b5a5896441d2.tar.gz bcm5719-llvm-e246fbe40bd86ce56fbb621aa414b5a5896441d2.zip |
[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).
llvm-svn: 179612
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 5893814d7a3..7990a491c06 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -189,7 +189,7 @@ void CodeGenModule::Release() { EmitStaticExternCAliases(); EmitLLVMUsed(); - if (CodeGenOpts.ModulesAutolink) { + if (CodeGenOpts.Autolink && Context.getLangOpts().Modules) { EmitModuleLinkOptions(); } |