1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00

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

llvm-svn: 33209
This commit is contained in:
Reid Spencer 2007-01-14 21:46:42 +00:00
parent 34dd9c63b6
commit 884f048f42

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