mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
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). llvm-svn: 93308
This commit is contained in:
parent
98af245e5f
commit
29a0ff2e70
@ -578,6 +578,10 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
||||
const char *Prefix = getSectionPrefixForUniqueGlobal(Kind);
|
||||
SmallString<128> Name;
|
||||
Name.append(Prefix, Prefix+strlen(Prefix));
|
||||
// FIXME: This will fail for weak globals with no names, this also depends
|
||||
// on the mangling behavior of makeNameProper to mangle the section name
|
||||
// before construction. Instead, this should use getNameWithPrefix on the
|
||||
// global variable and the MCSection printing code should do the mangling.
|
||||
Mang->makeNameProper(Name, GV->getName());
|
||||
|
||||
return getELFSection(Name.str(),
|
||||
|
Loading…
Reference in New Issue
Block a user