summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ExtractFunction.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2009-01-15 20:18:42 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2009-01-15 20:18:42 +0000
commit6de96a1b5d77b13719760d0143ef48e8670b6e20 (patch)
treeab6f61642a2e971790afdd47c806735afb828cdf /llvm/tools/bugpoint/ExtractFunction.cpp
parent7ffcf93b2450ca373cdf3147744a029e9b00e095 (diff)
downloadbcm5719-llvm-6de96a1b5d77b13719760d0143ef48e8670b6e20.tar.gz
bcm5719-llvm-6de96a1b5d77b13719760d0143ef48e8670b6e20.zip
Add the private linkage.
llvm-svn: 62279
Diffstat (limited to 'llvm/tools/bugpoint/ExtractFunction.cpp')
-rw-r--r--llvm/tools/bugpoint/ExtractFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/ExtractFunction.cpp b/llvm/tools/bugpoint/ExtractFunction.cpp
index 776922aa5d4..811169d86f8 100644
--- a/llvm/tools/bugpoint/ExtractFunction.cpp
+++ b/llvm/tools/bugpoint/ExtractFunction.cpp
@@ -199,7 +199,7 @@ static Constant *GetTorInit(std::vector<std::pair<Function*, int> > &TorList) {
/// prune appropriate entries out of M1s list.
static void SplitStaticCtorDtor(const char *GlobalName, Module *M1, Module *M2){
GlobalVariable *GV = M1->getNamedGlobal(GlobalName);
- if (!GV || GV->isDeclaration() || GV->hasInternalLinkage() ||
+ if (!GV || GV->isDeclaration() || GV->hasLocalLinkage() ||
!GV->use_empty()) return;
std::vector<std::pair<Function*, int> > M1Tors, M2Tors;
OpenPOWER on IntegriCloud