diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-13 17:26:11 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-13 17:26:11 -0800 |
commit | 2baeecf4cfa05a044106e0a7f4db48086761f804 (patch) | |
tree | 5c11ad9a4ccab0a22e0dd3c86ab7060cfdd00a97 /lib/Target/CppBackend/CPPBackend.cpp | |
parent | feebe4d5ac5dfe46c472e153a6ddb3d921363fbf (diff) |
fix global extern detection
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index fe71dced38..44b092f831 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -280,7 +280,7 @@ namespace { return utostr(getFunctionIndex(F)); } else if (const Constant *CV = dyn_cast<Constant>(Ptr)) { if (const GlobalValue *GV = dyn_cast<GlobalValue>(Ptr)) { - if (GV->hasExternalLinkage()) { + if (GV->isDeclaration()) { std::string Name = getOpName(Ptr); Externals.insert(Name); return Name; |