diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-21 17:30:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-21 17:30:51 +0000 |
commit | 90f8b7073dd472afb21bc33be0f24391e7a4505b (patch) | |
tree | 3f6f5178a3dd2a22d739e85705618d265adeec00 /lib/CodeGen/MachOWriter.cpp | |
parent | 7cb6860185187c74a1205deebff9e0f09a0ddae4 (diff) |
Rename LessPrivateGlobalPrefix -> LinkerPrivateGlobalPrefix to match the
LLVM IR concept.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76590 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachOWriter.cpp')
-rw-r--r-- | lib/CodeGen/MachOWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/MachOWriter.cpp b/lib/CodeGen/MachOWriter.cpp index a6a439a226..0ce9044e85 100644 --- a/lib/CodeGen/MachOWriter.cpp +++ b/lib/CodeGen/MachOWriter.cpp @@ -747,6 +747,7 @@ MachOSym::MachOSym(const GlobalValue *gv, std::string name, uint8_t sect, GV(gv), n_strx(0), n_type(sect == NO_SECT ? N_UNDF : N_SECT), n_sect(sect), n_desc(0), n_value(0) { + // FIXME: This is completely broken, it should use the mangler interface. switch (GV->getLinkage()) { default: llvm_unreachable("Unexpected linkage type!"); @@ -765,7 +766,7 @@ MachOSym::MachOSym(const GlobalValue *gv, std::string name, uint8_t sect, GVName = TAI->getPrivateGlobalPrefix() + name; break; case GlobalValue::LinkerPrivateLinkage: - GVName = TAI->getLessPrivateGlobalPrefix() + name; + GVName = TAI->getLinkerPrivateGlobalPrefix() + name; break; case GlobalValue::InternalLinkage: GVName = TAI->getGlobalPrefix() + name; |