summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2017-03-13 18:08:11 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2017-03-13 18:08:11 +0000
commit5eb9c81d828090dd597fb1ae8789b32d4ac66bb3 (patch)
treef650f8d540844fe7ccc6e9ef2e5652edbdb71ac6 /clang/lib/Frontend/CompilerInvocation.cpp
parent13a3af19318cd010aa1cfc276298e2772240594a (diff)
downloadbcm5719-llvm-5eb9c81d828090dd597fb1ae8789b32d4ac66bb3.tar.gz
bcm5719-llvm-5eb9c81d828090dd597fb1ae8789b32d4ac66bb3.zip
[Linker] Provide callback for internalization
Differential Revision: https://reviews.llvm.org/D30738 llvm-svn: 297649
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 598af20864b..23529749099 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -727,11 +727,11 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK,
CodeGenOptions::BitcodeFileToLink F;
F.Filename = A->getValue();
if (A->getOption().matches(OPT_mlink_cuda_bitcode)) {
- F.LinkFlags = llvm::Linker::Flags::LinkOnlyNeeded |
- llvm::Linker::Flags::InternalizeLinkedSymbols;
+ F.LinkFlags = llvm::Linker::Flags::LinkOnlyNeeded;
// When linking CUDA bitcode, propagate function attributes so that
// e.g. libdevice gets fast-math attrs if we're building with fast-math.
F.PropagateAttrs = true;
+ F.Internalize = true;
}
Opts.LinkBitcodeFiles.push_back(F);
}
OpenPOWER on IntegriCloud