projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use function attributes to indicate that we don't want to realign the stack.
[oota-llvm.git]
/
lib
/
Target
/
PowerPC
/
PPCRegisterInfo.cpp
diff --git
a/lib/Target/PowerPC/PPCRegisterInfo.cpp
b/lib/Target/PowerPC/PPCRegisterInfo.cpp
index b762a57b9c97cc4c267d0437d299142d66900d5e..adba613d6e9005f1bfef090ffa4a462bc8281660 100644
(file)
--- a/
lib/Target/PowerPC/PPCRegisterInfo.cpp
+++ b/
lib/Target/PowerPC/PPCRegisterInfo.cpp
@@
-717,7
+717,7
@@
bool PPCRegisterInfo::hasBasePointer(const MachineFunction &MF) const {
}
bool PPCRegisterInfo::canRealignStack(const MachineFunction &MF) const {
- if (
!MF.getTarget().Options.RealignStack
)
+ if (
MF.getFunction()->hasFnAttribute("no-realign-stack")
)
return false;
return true;