forked from OSchip/llvm-project
[WebAssembly] Use Function::hasOptSize() (NFC)
Summary: Use member function. Reviewers: aheejin Subscribers: sunfish, hiraditya, sbc100, jgravelle-google, dschuff, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D60651 Patch by Hideto Ueno (uenoku) llvm-svn: 358336
This commit is contained in:
parent
49f8776f0c
commit
5f3a04510a
|
@ -51,8 +51,7 @@ public:
|
||||||
"********** Function: "
|
"********** Function: "
|
||||||
<< MF.getName() << '\n');
|
<< MF.getName() << '\n');
|
||||||
|
|
||||||
ForCodeSize = MF.getFunction().hasFnAttribute(Attribute::OptimizeForSize) ||
|
ForCodeSize = MF.getFunction().hasOptSize();
|
||||||
MF.getFunction().hasFnAttribute(Attribute::MinSize);
|
|
||||||
Subtarget = &MF.getSubtarget<WebAssemblySubtarget>();
|
Subtarget = &MF.getSubtarget<WebAssemblySubtarget>();
|
||||||
return SelectionDAGISel::runOnMachineFunction(MF);
|
return SelectionDAGISel::runOnMachineFunction(MF);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue