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 | 7cadb2f65be918d6012cea09da28196ef1641a2f (patch) | |
tree | c5ec31b6663b9698c1c69e41ad568e8edf11de6e /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | f7f04458b3d1499be79d793b13b52cfe74b7d03f (diff) | |
download | bcm5719-llvm-7cadb2f65be918d6012cea09da28196ef1641a2f.tar.gz bcm5719-llvm-7cadb2f65be918d6012cea09da28196ef1641a2f.zip |
What was I thinking?
llvm-svn: 124835
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index ec3a8bf6583..150d0c46abc 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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 |