This is an archive of the discontinued LLVM Phabricator instance.

[DEBUG_INFO][NVPTX]Emit empty .debug_loc section in presence of the debug option.
ClosedPublic

Authored by ABataev on Jan 25 2019, 11:34 AM.

Details

Summary

If the LLVM module shows that it has debug info, but the file is
actually empty and the real debug info is not emitted, the ptxas tool
emits error 'Debug information not found in presence of .target debug'.
We need at leas one empty debug section to silence this message. Section
.debug_loc is not emitted for PTX and we can emit empty .debug_loc
section if debug option was emitted.

Diff Detail

Repository
rL LLVM

Event Timeline

ABataev created this revision.Jan 25 2019, 11:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 5 2019, 7:45 AM
tra accepted this revision.Mar 8 2019, 11:11 AM
This revision is now accepted and ready to land.Mar 8 2019, 11:11 AM
This revision was automatically updated to reflect the committed changes.