[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:
Heejin Ahn 2019-04-13 16:54:39 +00:00
parent 49f8776f0c
commit 5f3a04510a
1 changed files with 1 additions and 2 deletions

View File

@ -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);
} }