Primitive types don't include integers any more, adjust.
authorReid Spencer <rspencer@reidspencer.com>
Sun, 14 Jan 2007 21:46:42 +0000 (21:46 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 14 Jan 2007 21:46:42 +0000 (21:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33209 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachOWriter.h

index 6507ab6a8752a75f988cb429ecc6909e11e0302b..e83fb3039dbd71133b041d90cd9567d6549699a8 100644 (file)
@@ -534,7 +534,7 @@ namespace llvm {
     }
     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