[llvm] [CodeGen] Port `GCInfoPrinter` to new pass manager (PR #74972)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 10 18:15:17 PST 2023
================
@@ -101,7 +189,7 @@ void Printer::getAnalysisUsage(AnalysisUsage &AU) const {
}
bool Printer::runOnFunction(Function &F) {
- if (F.hasGC())
+ if (!F.hasGC())
----------------
paperchalice wrote:
We could know that it calls method `getFunctionInfo::getFunctionInfo`:
https://github.com/llvm/llvm-project/blob/1d608fc755a3e15d0020f61c9535c9b730ab9dec/llvm/lib/CodeGen/GCMetadata.cpp#L104-L107
But, in `getFunctionInfo::getFunctionInfo`:
https://github.com/llvm/llvm-project/blob/1d608fc755a3e15d0020f61c9535c9b730ab9dec/llvm/lib/CodeGen/GCMetadata.cpp#L64-L66
https://github.com/llvm/llvm-project/pull/74972
More information about the llvm-commits
mailing list