Remove unneeded #ifdef SWIGs
authorPavel Labath <pavel@labath.sk>
Tue, 9 Apr 2019 09:03:43 +0000 (09:03 +0000)
committerPavel Labath <pavel@labath.sk>
Tue, 9 Apr 2019 09:03:43 +0000 (09:03 +0000)
commit26ca5a57bc4cb85ebb62cb3a3fc01dbeb3503554
tree226d7a42b5783a065226173ed3d4aa63f095ea68
parent7e01ce2ed15a6d25097bedd70f5f91af516a7149
Remove unneeded #ifdef SWIGs

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.

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 for this patch, 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.

Reviewers: JDevlieghere, clayborg, jingham

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D60400

llvm-svn: 357984
lldb/include/lldb/API/SBDefines.h
lldb/include/lldb/API/SBThread.h
lldb/include/lldb/API/SBThreadPlan.h
lldb/include/lldb/Core/Address.h
lldb/include/lldb/Core/SourceManager.h
lldb/include/lldb/Target/Process.h
lldb/scripts/interface/SBFrame.i
lldb/source/API/SBThread.cpp
lldb/source/API/SBThreadPlan.cpp