This is an archive of the discontinued LLVM Phabricator instance.

Pass -gdwarf-N options to integrated assembler
ClosedPublic

Authored by olista01 on Feb 11 2014, 5:44 AM.

Details

Reviewers
rengolin
echristo
Summary

Add -gdwarf-N options to cc1as, and pass them through from the driver.

Diff Detail

Event Timeline

Hi Oliver,

Looks good to me.

thanks!
--renato

rengolin accepted this revision.Feb 11 2014, 6:44 AM

Can't tell from just looking at it but will this:

clang -Wa,-gdwarf-2

work after this? If not, can it? :)

Thanks!

olista01 updated this revision to Unknown Object (????).Feb 12 2014, 1:54 AM

Made -Wa,-gdwarf-N and -Xassembler -gdwarf-N work.

Sorry Oliver, I got lost. Is this your latest request?

Is there another review of the same thing elsewhere? If there is, can you abandon this request?

cheers,
--renato

This change adds the command line options cc1as and passes options through from clang to cc1as, and depends on D2697 (adding support for debug info for multiple sections to the assembler) for MCContext::setDwarfVersion, so I can't commit it before D2697.

olista01 closed this revision.May 19 2014, 6:46 AM

Committed revision 209124.