[llvm-commits] [see] CVS: llvm/lib/Target/CBackend/Writer.cpp

Andrew Lenharth alenhar2 at cs.uiuc.edu
Tue Feb 20 10:21:55 PST 2007



Changes in directory llvm/lib/Target/CBackend:

Writer.cpp updated: 1.280 -> 1.280.4.1
---
Log message:

section support for CBE, may want to port this to head

---
Diffs of the changes:  (+2 -0)

 Writer.cpp |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.280 llvm/lib/Target/CBackend/Writer.cpp:1.280.4.1
--- llvm/lib/Target/CBackend/Writer.cpp:1.280	Sun Nov  5 13:26:37 2006
+++ llvm/lib/Target/CBackend/Writer.cpp	Tue Feb 20 12:21:25 2007
@@ -1273,6 +1273,8 @@
           Out << " __attribute__((common))";
         else if (I->hasWeakLinkage())
           Out << " __ATTRIBUTE_WEAK__";
+        if (I->hasSection())
+          Out << " __attribute__ ((__section__ (\"" << I->getSection() << "\")))";
         Out << ";\n";
       }
   }






More information about the llvm-commits mailing list