diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-01 21:42:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-01 21:42:58 +0000 |
commit | 27602b82c2a12b9f99c1f7fcbfb4be5ba97dbd7d (patch) | |
tree | a812ad61345e829a36c4603e1cfddb977ae9d65d /lib/Target/TargetLoweringObjectFile.cpp | |
parent | 0064e85050e3a324aa66ee29af56546e0c31f6cc (diff) |
don't use isWeak anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77810 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r-- | lib/Target/TargetLoweringObjectFile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp index b9e585d6dd..ae306c4371 100644 --- a/lib/Target/TargetLoweringObjectFile.cpp +++ b/lib/Target/TargetLoweringObjectFile.cpp @@ -415,7 +415,7 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionInfo Info, // 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 (Info.isWeak()) { + if (GV->isWeakForLinker()) { const char *Prefix = getSectionPrefixForUniqueGlobal(Info); std::string Name = Mang->makeNameProper(GV->getNameStr()); return getOrCreateSection((Prefix+Name).c_str(), false, Info); @@ -536,11 +536,11 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionInfo Info, assert(!Info.isThreadLocal() && "Darwin doesn't support TLS"); if (Info.isText()) - return Info.isWeak() ? TextCoalSection : TextSection; + return GV->isWeakForLinker() ? TextCoalSection : TextSection; // If this is weak/linkonce, put this in a coalescable section, either in text // or data depending on if it is writable. - if (Info.isWeak()) { + if (GV->isWeakForLinker()) { if (Info.isReadOnly()) return ConstTextCoalSection; return DataCoalSection; @@ -667,7 +667,7 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionInfo Info, // 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 (Info.isWeak()) { + if (GV->isWeakForLinker()) { const char *Prefix = getCOFFSectionPrefixForUniqueGlobal(Info); std::string Name = Mang->makeNameProper(GV->getNameStr()); return getOrCreateSection((Prefix+Name).c_str(), false, Info); |