llvm.org GIT mirror llvm / 4d5f06f
add a fixme, ELF MCSection isn't quite right and weak unnamed globals are broken on linux (even though they are pointless, they shouldn't ICE). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93308 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
577577 const char *Prefix = getSectionPrefixForUniqueGlobal(Kind);
578578 SmallString<128> Name;
579579 Name.append(Prefix, Prefix+strlen(Prefix));
580 // FIXME: This will fail for weak globals with no names, this also depends
581 // on the mangling behavior of makeNameProper to mangle the section name
582 // before construction. Instead, this should use getNameWithPrefix on the
583 // global variable and the MCSection printing code should do the mangling.
580584 Mang->makeNameProper(Name, GV->getName());
581585
582586 return getELFSection(Name.str(),