This is an archive of the discontinued LLVM Phabricator instance.

[clang][Driver] Add -fintegrate-as to debug-pass-structure test
ClosedPublic

Authored by jsji on May 5 2021, 9:07 AM.

Details

Summary

CGProfilePass is not always on, it will be disabled when using
non-intergrated assemblers.

// Only enable CGProfilePass when using integrated assembler, since
// non-integrated assemblers don't recognize .cgprofile section.
PMBuilder.CallGraphProfile = !CodeGenOpts.DisableIntegratedAS;

Add -fintegrate-as to make sure the output don't rely on the platform default.

Diff Detail

Event Timeline

jsji requested review of this revision.May 5 2021, 9:07 AM
jsji created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2021, 9:07 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.May 5 2021, 9:09 AM
This revision was landed with ongoing or failed builds.May 5 2021, 9:12 AM
This revision was automatically updated to reflect the committed changes.