forked from OSchip/llvm-project
parent
f7f04458b3
commit
7cadb2f65b
|
@ -374,9 +374,7 @@ CodeGenModule::getFunctionLinkage(const FunctionDecl *D) {
|
||||||
// In C99 mode, 'inline' functions are guaranteed to have a strong
|
// In C99 mode, 'inline' functions are guaranteed to have a strong
|
||||||
// definition somewhere else, so we can use available_externally linkage.
|
// definition somewhere else, so we can use available_externally linkage.
|
||||||
if (Linkage == GVA_C99Inline)
|
if (Linkage == GVA_C99Inline)
|
||||||
return !Context.getLangOptions().AppleKext
|
return llvm::Function::AvailableExternallyLinkage;
|
||||||
? llvm::Function::AvailableExternallyLinkage
|
|
||||||
: llvm::Function::InternalLinkage;
|
|
||||||
|
|
||||||
// In C++, the compiler has to emit a definition in every translation unit
|
// In C++, the compiler has to emit a definition in every translation unit
|
||||||
// that references the function. We should use linkonce_odr because
|
// that references the function. We should use linkonce_odr because
|
||||||
|
|
Loading…
Reference in New Issue