This is an archive of the discontinued LLVM Phabricator instance.

[Lex] Use line markers in preprocessed assembly predefines file
ClosedPublic

Authored by john.brawn on Mar 6 2023, 9:10 AM.

Details

Summary

GNU line marker directives are not recognised when preprocessing assembly files, meaning they can't be used in the predefines file meaning macros defined on the command line are reported as being built-in.

Change this to permit line markers but only in the predefines file, so we can correctly report command line macros as coming from the command line.

Diff Detail

Event Timeline

john.brawn created this revision.Mar 6 2023, 9:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2023, 9:10 AM
john.brawn requested review of this revision.Mar 6 2023, 9:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2023, 9:10 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.Mar 7 2023, 7:31 AM

LGTM, but please add a release note about the fix when landing.

This revision is now accepted and ready to land.Mar 7 2023, 7:31 AM