projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58e9746
)
Primitive types don't include integers any more, adjust.
author
Reid Spencer
<rspencer@reidspencer.com>
Sun, 14 Jan 2007 21:46:42 +0000
(21:46 +0000)
committer
Reid 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
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachOWriter.h
b/include/llvm/CodeGen/MachOWriter.h
index 6507ab6a8752a75f988cb429ecc6909e11e0302b..e83fb3039dbd71133b041d90cd9567d6549699a8 100644
(file)
--- 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