From 00cd00cbee5cbc750229597fd74b6a3f1f2f81df Mon Sep 17 00:00:00 2001
From: foreman
Date: Fri, 11 Jul 2014 11:51:37 -0400
Subject: [PATCH] P4 to Git Change 1054428 by yaxunl@yaxunl_stg_win50 on
2014/07/11 11:42:03
ECR #377625 - Allow function call for function with internal linkage.
Internal linkage correponds to static function in C. The function could be large and should be allowed to be not inlined.
Affected files ...
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#106 edit
---
rocclr/compiler/lib/backends/common/linker.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rocclr/compiler/lib/backends/common/linker.cpp b/rocclr/compiler/lib/backends/common/linker.cpp
index f85e366a47..a9a0651e31 100644
--- a/rocclr/compiler/lib/backends/common/linker.cpp
+++ b/rocclr/compiler/lib/backends/common/linker.cpp
@@ -221,7 +221,7 @@ AddNoInlineAttr(llvm::Module* M)
{
LLVMContext &Context = M->getContext();
for (llvm::Module::iterator I = M->begin(), E = M->end(); I != E; ++I) {
- if (I->getLinkage() != Function::InternalLinkage && I->hasName() &&
+ if (I->hasName() &&
!I->isDeclaration() &&
!I->isIntrinsic() &&
!I->getName().startswith("__amdil") &&