Simplify some getNode calls.
[oota-llvm.git] / tools / llvm-nm / llvm-nm.cpp
index 63fa75d884f1a48e44ae521c015ad69b85b3285d..008c2e0431fca956121cc8abd9584a420a592f3f 100644 (file)
@@ -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';