This is an archive of the discontinued LLVM Phabricator instance.

Omit 'nodebug' method from the class
ClosedPublic

Authored by probinson on Jun 23 2015, 5:38 PM.

Details

Reviewers
dblaikie
echristo
Summary

CodeGenFunction suppresses debug info for the definition of a method with attribute 'nodebug'.
For consistency, the declaration should also be omitted from the class description.

Diff Detail

Event Timeline

probinson updated this revision to Diff 28310.Jun 23 2015, 5:38 PM
probinson retitled this revision from to Omit 'nodebug' method from the class.
probinson updated this object.
probinson edited the test plan for this revision. (Show Details)
probinson added reviewers: dblaikie, echristo.
probinson added a subscriber: Unknown Object (MLST).

Repeating the summary because I spaced out on adding reviewers *before* saving... again...

CodeGenFunction suppresses debug info for the definition of a method with attribute 'nodebug'.
For consistency, the declaration should also be omitted from the class description.

dblaikie accepted this revision.Jun 25 2015, 10:11 AM
dblaikie edited edge metadata.

Looks good - thanks!

test/CodeGenCXX/debug-info-method-nodebug.cpp
6

do you need the int member?

This revision is now accepted and ready to land.Jun 25 2015, 10:11 AM
probinson added inline comments.Jun 25 2015, 10:45 AM
test/CodeGenCXX/debug-info-method-nodebug.cpp
6

No. I'll take it out.
(Leftover from a fatter test that also checked codegen didn't emit any dbg annotations in a definition of absent(). But it turned out there's already CodeGen/attr-nodebug.c which is testing the codegen part, so I removed the definition.)

Hmmm looks like attr-nodebug.c could be more robust... I'll look at that in a bit.

r240664, thanks!

probinson closed this revision.Jun 25 2015, 11:24 AM