[llvm-branch-commits] [llvm] [nfc][StaticDataLayout] Factor out helper functions for section prefix eligibility (PR #162348)
Teresa Johnson via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Oct 7 14:26:39 PDT 2025
================
@@ -75,7 +75,7 @@ bool StaticDataAnnotator::runOnModule(Module &M) {
bool Changed = false;
for (auto &GV : M.globals()) {
- if (GV.isDeclarationForLinker())
+ if (!llvm::memprof::IsAnnotationOK(GV))
----------------
teresajohnson wrote:
This helper function includes more checks than just isDeclarationForLinker - so is this change really NFC?
https://github.com/llvm/llvm-project/pull/162348
More information about the llvm-branch-commits
mailing list