This is an archive of the discontinued LLVM Phabricator instance.

[DWARFASTParser] Remove special cases for `llvm-gcc`
ClosedPublic

Authored by davide on Jun 22 2018, 11:25 AM.

Details

Summary

To the best of my understanding modern compilers handle all these cases correctly. So, I think this is basically dead code.

Diff Detail

Repository
rL LLVM

Event Timeline

davide created this revision.Jun 22 2018, 11:25 AM

I don't have a problem with dropping compatibility with llvm-gcc in LLDB, but I should point out that LLDB generally wants to be able to debug code produced by a wide range of compilers, including old ones.

I think it's fair and correct supporting everything we can, but I guess llvm-gcc is largely dead at this point.

People might have a legitimate reason to debug very old code, e.g., for backporting security fixes or similar. On the other hand one might argue that they could just do this with a debugger from the same era.

I suppose this is fine. My main worry is whether llvm-gcc is the *only* situation where we rely on these tweaks, but I guess the best way to find out is to try removing them.

aprantl accepted this revision.Jul 30 2018, 8:17 AM
This revision is now accepted and ready to land.Jul 30 2018, 8:17 AM
This revision was automatically updated to reflect the committed changes.