diff options
author | Evandro Menezes <e.menezes@samsung.com> | 2019-04-04 22:40:06 +0000 |
---|---|---|
committer | Evandro Menezes <e.menezes@samsung.com> | 2019-04-04 22:40:06 +0000 |
commit | 85bd3978ae4e1c16fa8fa4bc27d0393d1d2265ea (patch) | |
tree | a34b115e832741a6bbc24703da317621c657a8bf /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 665b6b30ddeae26a3d215659f703bbe8a47cba77 (diff) | |
download | llvm-85bd3978ae4e1c16fa8fa4bc27d0393d1d2265ea.zip llvm-85bd3978ae4e1c16fa8fa4bc27d0393d1d2265ea.tar.gz llvm-85bd3978ae4e1c16fa8fa4bc27d0393d1d2265ea.tar.bz2 |
[IR] Refactor attribute methods in Function class (NFC)
Rename the functions that query the optimization kind attributes.
Differential revision: https://reviews.llvm.org/D60287
llvm-svn: 357731
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 6693fe4..a57f0f5 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -1342,7 +1342,7 @@ void CodeViewDebug::beginFunctionImpl(const MachineFunction *MF) { FPO |= FrameProcedureOptions(uint32_t(CurFn->EncodedLocalFramePtrReg) << 14U); FPO |= FrameProcedureOptions(uint32_t(CurFn->EncodedParamFramePtrReg) << 16U); if (Asm->TM.getOptLevel() != CodeGenOpt::None && - !GV.optForSize() && !GV.optForNone()) + !GV.hasOptSize() && !GV.hasOptNone()) FPO |= FrameProcedureOptions::OptimizedForSpeed; // FIXME: Set GuardCfg when it is implemented. CurFn->FrameProcOpts = FPO; |