mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Constify the Optnone checks in IR passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202213 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -368,8 +368,8 @@ void LoopPass::assignPassManager(PMStack &PMS,
|
||||
|
||||
// Containing function has Attribute::OptimizeNone and transformation
|
||||
// passes should skip it.
|
||||
bool LoopPass::skipOptnoneFunction(Loop *L) const {
|
||||
Function *F = L->getHeader()->getParent();
|
||||
bool LoopPass::skipOptnoneFunction(const Loop *L) const {
|
||||
const Function *F = L->getHeader()->getParent();
|
||||
if (F && F->hasFnAttribute(Attribute::OptimizeNone)) {
|
||||
// FIXME: Report this to dbgs() only once per function.
|
||||
DEBUG(dbgs() << "Skipping pass '" << getPassName()
|
||||
|
Reference in New Issue
Block a user