aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-nm
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-05-16 22:44:18 +0000
committerDale Johannesen <dalej@apple.com>2008-05-16 22:44:18 +0000
commit7d5633e9074db9eaf796e677451f6642c0174fac (patch)
treecd9ead6dbf548fb8124870d663b2acc2340cc7c2 /tools/llvm-nm
parentc9b0aa788f837673cd5c28331dd464909dd72560 (diff)
downloadexternal_llvm-7d5633e9074db9eaf796e677451f6642c0174fac.zip
external_llvm-7d5633e9074db9eaf796e677451f6642c0174fac.tar.gz
external_llvm-7d5633e9074db9eaf796e677451f6642c0174fac.tar.bz2
Add CommonLinkage to lto (treated same as weak AFAICT)
and llvm-nm (prints as C). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-nm')
-rw-r--r--tools/llvm-nm/llvm-nm.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp
index 63fa75d..008c2e0 100644
--- a/tools/llvm-nm/llvm-nm.cpp
+++ b/tools/llvm-nm/llvm-nm.cpp
@@ -70,6 +70,7 @@ namespace {
static char TypeCharForSymbol(GlobalValue &GV) {
if (GV.isDeclaration()) return 'U';
if (GV.hasLinkOnceLinkage()) return 'C';
+ if (GV.hasCommonLinkage()) return 'C';
if (GV.hasWeakLinkage()) return 'W';
if (isa<Function>(GV) && GV.hasInternalLinkage()) return 't';
if (isa<Function>(GV)) return 'T';