projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PPC doesn't supported VLA with large alignment. This was
[oota-llvm.git]
/
lib
/
Target
/
PowerPC
/
PPCFrameInfo.h
diff --git
a/lib/Target/PowerPC/PPCFrameInfo.h
b/lib/Target/PowerPC/PPCFrameInfo.h
index 4bf543a8d052de3bcf052ccc0f83d7637b9bc690..7587b0359816816539892548ba3f3e3b9ede0ad4 100644
(file)
--- a/
lib/Target/PowerPC/PPCFrameInfo.h
+++ b/
lib/Target/PowerPC/PPCFrameInfo.h
@@
-50,7
+50,7
@@
public:
return isPPC64 ? -8U : -4U;
// SVR4 ABI: First slot in the general register save area.
return isPPC64 ? -8U : -4U;
// SVR4 ABI: First slot in the general register save area.
- return -4U;
+ return
isPPC64 ? -8U :
-4U;
}
/// getLinkageSize - Return the size of the PowerPC ABI linkage area.
}
/// getLinkageSize - Return the size of the PowerPC ABI linkage area.
@@
-94,11
+94,11
@@
public:
if (TM.getSubtarget<PPCSubtarget>().isDarwinABI()) {
NumEntries = 1;
if (TM.getSubtarget<PPCSubtarget>().isPPC64()) {
if (TM.getSubtarget<PPCSubtarget>().isDarwinABI()) {
NumEntries = 1;
if (TM.getSubtarget<PPCSubtarget>().isPPC64()) {
- static const SpillSlot darwin64Offsets
[]
= {PPC::X31, -8};
- return darwin64Offsets;
+ static const SpillSlot darwin64Offsets = {PPC::X31, -8};
+ return
&
darwin64Offsets;
} else {
} else {
- static const SpillSlot darwinOffsets
[]
= {PPC::R31, -4};
- return darwinOffsets;
+ static const SpillSlot darwinOffsets = {PPC::R31, -4};
+ return
&
darwinOffsets;
}
}
}
}