[llvm-commits] [llvm] r77810 - /llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp

Chris Lattner sabre at nondot.org
Sat Aug 1 14:42:59 PDT 2009


Author: lattner
Date: Sat Aug  1 16:42:58 2009
New Revision: 77810

URL: http://llvm.org/viewvc/llvm-project?rev=77810&view=rev
Log:
don't use isWeak anymore.

Modified:
    llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp

Modified: llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp?rev=77810&r1=77809&r2=77810&view=diff

==============================================================================
--- llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp (original)
+++ llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp Sat Aug  1 16:42:58 2009
@@ -415,7 +415,7 @@
   
   // 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 @@
   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 @@
   
   // 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);





More information about the llvm-commits mailing list