projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify code, don't or a bool with an uint64_t.
[oota-llvm.git]
/
lib
/
CodeGen
/
MachineFunction.cpp
diff --git
a/lib/CodeGen/MachineFunction.cpp
b/lib/CodeGen/MachineFunction.cpp
index 328722bad48b17a817db49da7d6ea41a983fdd99..34fbfe20f4fb4d23d32cf7a3c531fb537078b00c 100644
(file)
--- a/
lib/CodeGen/MachineFunction.cpp
+++ b/
lib/CodeGen/MachineFunction.cpp
@@
-59,13
+59,13
@@
MachineFunction::MachineFunction(const Function *F, const TargetMachine &TM,
RegInfo = 0;
MFInfo = 0;
FrameInfo = new (Allocator) MachineFrameInfo(*TM.getFrameLowering());
RegInfo = 0;
MFInfo = 0;
FrameInfo = new (Allocator) MachineFrameInfo(*TM.getFrameLowering());
- if (Fn->
hasFnAttr(Attribute::StackAlignment
))
- FrameInfo->ensureMaxAlignment(
Attribute::getStackAlignmentFromAttrs(
-
Fn->getAttributes().getFnAttributes()
));
+ if (Fn->
getFnAttributes().hasStackAlignmentAttr(
))
+ FrameInfo->ensureMaxAlignment(
Fn->getAttributes().
+
getFnAttributes().getStackAlignment(
));
ConstantPool = new (Allocator) MachineConstantPool(TM.getTargetData());
Alignment = TM.getTargetLowering()->getMinFunctionAlignment();
// FIXME: Shouldn't use pref alignment if explicit alignment is set on Fn.
ConstantPool = new (Allocator) MachineConstantPool(TM.getTargetData());
Alignment = TM.getTargetLowering()->getMinFunctionAlignment();
// FIXME: Shouldn't use pref alignment if explicit alignment is set on Fn.
- if (!Fn->
hasFnAttr(Attribute::OptimizeForSize
))
+ if (!Fn->
getFnAttributes().hasOptimizeForSizeAttr(
))
Alignment = std::max(Alignment,
TM.getTargetLowering()->getPrefFunctionAlignment());
FunctionNumber = FunctionNum;
Alignment = std::max(Alignment,
TM.getTargetLowering()->getPrefFunctionAlignment());
FunctionNumber = FunctionNum;