summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetLoweringObjectFile.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-01 21:42:58 +0000
committerChris Lattner <sabre@nondot.org>2009-08-01 21:42:58 +0000
commit72c3e7746f08001310f95d1c4db2683fb0c903b6 (patch)
tree9999a6f67cd90f73cc3de4b32606264d532b5f83 /llvm/lib/Target/TargetLoweringObjectFile.cpp
parent9ba71d12d8405bcca7f3823ceb8a962b9d8d3394 (diff)
downloadbcm5719-llvm-72c3e7746f08001310f95d1c4db2683fb0c903b6.tar.gz
bcm5719-llvm-72c3e7746f08001310f95d1c4db2683fb0c903b6.zip
don't use isWeak anymore.
llvm-svn: 77810
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r--llvm/lib/Target/TargetLoweringObjectFile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index b9e585d6dd0..ae306c4371e 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud