Ignore "no-frame-pointer-elim" and "no-frame-pointer-elim-non-leaf" in favor of "frame-pointer"

D56351 (included in LLVM 8.0.0) introduced "frame-pointer".  All tests
which use "no-frame-pointer-elim" or "no-frame-pointer-elim-non-leaf"
have been migrated to use "frame-pointer".

Implement UpgradeFramePointerAttributes to upgrade the two obsoleted
function attributes for bitcode. Their semantics are ignored.

Differential Revision: https://reviews.llvm.org/D71863
This commit is contained in:
Fangrui Song committed 2019-12-30 09:46:19 -08:00
1 parent ee3eebba0d
commit 03b9f0a5e1
6 files changed
+65 -13

No files matched your search

@@ -1661,6 +1661,7 @@ Error BitcodeReader::parseAttributeGroupBlock() {
}
}
UpgradeFramePointerAttributes(B);
MAttributeGroups[GrpID] = AttributeList::get(Context, Idx, B);
break;
}