function-instrument=xray-never wasn't actually honored before. We were getting lucky that it worked because CodeGenFunction would omit the other xray attributes when a function as annotated with xray_never_instrument. This patch adds proper support.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Do you think we should fix this by handling the xray-never attribute in XRayInstrumentation, or having CodeGenFunction remove the threshold if xray-never is set?
Good catch, thanks!
I think we should go with the former (handling the case in XRayInstrumentation) -- the rationale here is that when we apply the file-based always-instrument case, we ignore the "never" attribute (i.e. the "always" case overrides the "never" case). We should make sure that this case still works (if we don't have cases for that, then we should add those too).