diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-02-04 00:08:13 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-02-04 00:08:13 +0000 |
commit | fd0f89d3d7e4220327abdec1cb115474d70219dc (patch) | |
tree | 308012471ad1037ccd170483ca5204620ef8877f /lib/CodeGen/CodeGenModule.cpp | |
parent | 142f9e99018a85105cee570133c111a52f2053ec (diff) |
What was I thinking?
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index ec3a8bf658..150d0c46ab 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -374,9 +374,7 @@ CodeGenModule::getFunctionLinkage(const FunctionDecl *D) { // In C99 mode, 'inline' functions are guaranteed to have a strong // definition somewhere else, so we can use available_externally linkage. if (Linkage == GVA_C99Inline) - return !Context.getLangOptions().AppleKext - ? llvm::Function::AvailableExternallyLinkage - : llvm::Function::InternalLinkage; + return llvm::Function::AvailableExternallyLinkage; // In C++, the compiler has to emit a definition in every translation unit // that references the function. We should use linkonce_odr because |