mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
[ObjCARC Debug Message] - Added debug message when we add a nounwind keyword to a function which can not throw.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171676 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
817d4e942b
commit
38bc25a52e
@ -2452,6 +2452,8 @@ void ObjCARCOpt::OptimizeIndividualCalls(Function &F) {
|
||||
// Set nounwind as needed.
|
||||
if (IsNoThrow(Class)) {
|
||||
Changed = true;
|
||||
DEBUG(dbgs() << "ObjCARCOpt::OptimizeIndividualCalls: Found no throw"
|
||||
" class. Setting nounwind on: " << *Inst << "\n");
|
||||
cast<CallInst>(Inst)->setDoesNotThrow();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user