]> granicus.if.org Git - clang/commitdiff
What was I thinking?
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 4 Feb 2011 00:08:13 +0000 (00:08 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 4 Feb 2011 00:08:13 +0000 (00:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124835 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp

index ec3a8bf658301cc0b5545b9c96357c2638736500..150d0c46abc3e7e42d4ca641eb28809845579878 100644 (file)
@@ -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