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: "
|
||||
<< MF.getName() << '\n');
|
||||
|
||||
ForCodeSize = MF.getFunction().hasFnAttribute(Attribute::OptimizeForSize) ||
|
||||
MF.getFunction().hasFnAttribute(Attribute::MinSize);
|
||||
ForCodeSize = MF.getFunction().hasOptSize();
|
||||
Subtarget = &MF.getSubtarget<WebAssemblySubtarget>();
|
||||
return SelectionDAGISel::runOnMachineFunction(MF);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue