summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/DarwinTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-21 17:30:51 +0000
committerChris Lattner <sabre@nondot.org>2009-07-21 17:30:51 +0000
commit1177cee9dc413561fe819601f9ea3580a88dbfc3 (patch)
treef221bfd9322c73f9956ef47c4fbe1214c08879b6 /llvm/lib/Target/DarwinTargetAsmInfo.cpp
parent731269f9a7d5fa8ae1097b5e4e262a6532a3523f (diff)
downloadbcm5719-llvm-1177cee9dc413561fe819601f9ea3580a88dbfc3.tar.gz
bcm5719-llvm-1177cee9dc413561fe819601f9ea3580a88dbfc3.zip
Rename LessPrivateGlobalPrefix -> LinkerPrivateGlobalPrefix to match the
LLVM IR concept. llvm-svn: 76590
Diffstat (limited to 'llvm/lib/Target/DarwinTargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/DarwinTargetAsmInfo.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Target/DarwinTargetAsmInfo.cpp b/llvm/lib/Target/DarwinTargetAsmInfo.cpp
index 6540edd97ae..31c29a72bdf 100644
--- a/llvm/lib/Target/DarwinTargetAsmInfo.cpp
+++ b/llvm/lib/Target/DarwinTargetAsmInfo.cpp
@@ -57,7 +57,7 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo(const TargetMachine &TM)
// Syntax:
GlobalPrefix = "_";
PrivateGlobalPrefix = "L";
- LessPrivateGlobalPrefix = "l"; // Marker for some ObjC metadata
+ LinkerPrivateGlobalPrefix = "l"; // Marker for some ObjC metadata
NeedsSet = true;
NeedsIndirectEncoding = true;
AllowQuotesInName = true;
@@ -105,17 +105,18 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo(const TargetMachine &TM)
}
/// emitUsedDirectiveFor - On Darwin, internally linked data beginning with
-/// the PrivateGlobalPrefix or the LessPrivateGlobalPrefix does not have the
+/// the PrivateGlobalPrefix or the LinkerPrivateGlobalPrefix does not have the
/// directive emitted (this occurs in ObjC metadata).
bool DarwinTargetAsmInfo::emitUsedDirectiveFor(const GlobalValue* GV,
Mangler *Mang) const {
if (!GV) return false;
- // Check whether the mangled name has the "Private" or "LessPrivate" prefix.
+ // Check whether the mangled name has the "Private" or "LinkerPrivate" prefix.
if (GV->hasLocalLinkage() && !isa<Function>(GV)) {
const std::string &Name = Mang->getMangledName(GV);
+ // FIXME: Always "L" and "l", simplify!
const char *PGPrefix = getPrivateGlobalPrefix();
- const char *LPGPrefix = getLessPrivateGlobalPrefix();
+ const char *LPGPrefix = getLinkerPrivateGlobalPrefix();
unsigned PGPLen = strlen(PGPrefix);
unsigned LPGPLen = strlen(LPGPrefix);
OpenPOWER on IntegriCloud