diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-14 21:46:42 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-14 21:46:42 +0000 |
commit | 488228ceb106686ed145c96206e020ea2c36ab6d (patch) | |
tree | d0d78de3b60515be085dbae07f0251eab5701520 | |
parent | 58e9746ef3124d46ccf3ffa9783e1bad978d0245 (diff) |
Primitive types don't include integers any more, adjust.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33209 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/MachOWriter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachOWriter.h b/include/llvm/CodeGen/MachOWriter.h index 6507ab6a87..e83fb3039d 100644 --- a/include/llvm/CodeGen/MachOWriter.h +++ b/include/llvm/CodeGen/MachOWriter.h @@ -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 |