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
This commit is contained in:
Reid Spencer 2007-01-14 21:46:42 +00:00
parent 58e9746ef3
commit 488228ceb1

View 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