aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/TargetAsmInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-27 19:14:14 +0000
committerChris Lattner <sabre@nondot.org>2009-07-27 19:14:14 +0000
commit3b07b5214ccf545ff6638d1327946c3300f1ee5f (patch)
tree5261292ea73796ca0d0600db74fac6b44d26936f /lib/Target/TargetAsmInfo.cpp
parentfa199f3c168947f91e1935d23b5fd6ee3027ddd3 (diff)
downloadexternal_llvm-3b07b5214ccf545ff6638d1327946c3300f1ee5f.tar.gz
external_llvm-3b07b5214ccf545ff6638d1327946c3300f1ee5f.tar.bz2
external_llvm-3b07b5214ccf545ff6638d1327946c3300f1ee5f.zip
Sink getSectionPrefixForUniqueGlobal down into the TAI
implementations that need it, rearrange ELFTAI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77236 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetAsmInfo.cpp')
-rw-r--r--lib/Target/TargetAsmInfo.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp
index f5c1458e3d..1cb085bcd1 100644
--- a/lib/Target/TargetAsmInfo.cpp
+++ b/lib/Target/TargetAsmInfo.cpp
@@ -319,15 +319,6 @@ const Section *TargetAsmInfo::SectionForGlobal(const GlobalValue *GV) const {
return getOrCreateSection(GV->getSection().c_str(), false, GVKind);
}
- // If this global is linkonce/weak and the target handles this by emitting it
- // into a 'uniqued' section name, create and return the section now.
- if (Kind.isWeak()) {
- if (const char *Prefix = getSectionPrefixForUniqueGlobal(Kind)) {
- // FIXME: Use mangler interface (PR4584).
- std::string Name = Prefix+GV->getNameStr();
- return getOrCreateSection(Name.c_str(), false, GVKind);
- }
- }
// Use default section depending on the 'type' of global
return SelectSectionForGlobal(GV, Kind);