This is an archive of the discontinued LLVM Phabricator instance.

Remove unneeded #ifdef SWIGs
ClosedPublic

Authored by labath on Apr 8 2019, 2:12 AM.

Details

Summary

Some of these were present in files which should never be read by swig
(and we also had one in the interface file, which is only read by swig).
They are probably leftovers from the time when we were running swig over
lldb headers directly.

The reason I'm putting this up for review is that the patch also
contains mild functional changes. While writing this patch, I noticed
that some of the #ifdefs were guarding public functions that were
operating on lldb_private data types. While it wasn't strictly
necessary, I made these private, as nobody should really be accessing
them. This can potentially break existing code if it happened to use
these methods, though it will only break at build time -- if someone
builds against an old header, he should still be able to link to a new
lldb library, since the functions are still there.

We could keep these public for backward compatbility, but I would argue
that if anyone was actually using these functions for anything, his code
is already broken.

Diff Detail

Repository
rLLDB LLDB

Event Timeline

labath created this revision.Apr 8 2019, 2:12 AM
This revision is now accepted and ready to land.Apr 8 2019, 3:29 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 9 2019, 2:02 AM
Herald added a subscriber: abidh. · View Herald Transcript