[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachOWriter.h

Reid Spencer reid at x10sys.com
Sun Jan 14 13:46:58 PST 2007



Changes in directory llvm/include/llvm/CodeGen:

MachOWriter.h updated: 1.9 -> 1.10
---
Log message:

Primitive types don't include integers any more, adjust.


---
Diffs of the changes:  (+1 -1)

 MachOWriter.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/CodeGen/MachOWriter.h
diff -u llvm/include/llvm/CodeGen/MachOWriter.h:1.9 llvm/include/llvm/CodeGen/MachOWriter.h:1.10
--- llvm/include/llvm/CodeGen/MachOWriter.h:1.9	Sat Dec 16 14:23:42 2006
+++ llvm/include/llvm/CodeGen/MachOWriter.h	Sun Jan 14 15:46:42 2007
@@ -534,7 +534,7 @@
     }
     MachOSection *getConstSection(const Type *Ty) {
       // FIXME: support cstring literals and pointer literal
-      if (Ty->isPrimitiveType()) {
+      if (Ty->isPrimitiveType() || Ty->isIntegral()) {
         unsigned Size = TM.getTargetData()->getTypeSize(Ty);
         switch(Size) {
         default: break; // Fall through to __TEXT,__const






More information about the llvm-commits mailing list