This is an archive of the discontinued LLVM Phabricator instance.

Make debug dump more friendly to conditional debug compilation
Needs ReviewPublic

Authored by gjain on Dec 11 2020, 11:59 AM.

Details

Diff Detail

Event Timeline

gjain created this revision.Dec 11 2020, 11:59 AM
gjain requested review of this revision.Dec 11 2020, 11:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 11 2020, 11:59 AM

Instead of this change, have you tried building the binary with -DLLVM_ENABLE_DUMP

@mtrofin: Thanks that works. That being said do you think that's a suitable necessity for the entire binary? Seems like all those dump functions don't really need to be included in the binary.

@mtrofin: Thanks that works. That being said do you think that's a suitable necessity for the entire binary? Seems like all those dump functions don't really need to be included in the binary.

Not sure what the concern is - I think the facility is for debugging purposes only, i.e. not something meant to survive in the release compiler.