summaryrefslogtreecommitdiffstats
path: root/lldb/include/lldb/API/SBThreadPlan.h
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-04-09 09:03:43 +0000
committerPavel Labath <pavel@labath.sk>2019-04-09 09:03:43 +0000
commit26ca5a57bc4cb85ebb62cb3a3fc01dbeb3503554 (patch)
tree226d7a42b5783a065226173ed3d4aa63f095ea68 /lldb/include/lldb/API/SBThreadPlan.h
parent7e01ce2ed15a6d25097bedd70f5f91af516a7149 (diff)
downloadbcm5719-llvm-26ca5a57bc4cb85ebb62cb3a3fc01dbeb3503554.tar.gz
bcm5719-llvm-26ca5a57bc4cb85ebb62cb3a3fc01dbeb3503554.zip
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
Diffstat (limited to 'lldb/include/lldb/API/SBThreadPlan.h')
-rw-r--r--lldb/include/lldb/API/SBThreadPlan.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/lldb/include/lldb/API/SBThreadPlan.h b/lldb/include/lldb/API/SBThreadPlan.h
index 6c57364d0bb..fae73cf5e35 100644
--- a/lldb/include/lldb/API/SBThreadPlan.h
+++ b/lldb/include/lldb/API/SBThreadPlan.h
@@ -103,11 +103,7 @@ public:
SBThreadPlan QueueThreadPlanForStepScripted(const char *script_class_name,
SBError &error);
-#ifndef SWIG
- lldb_private::ThreadPlan *get();
-#endif
-
-protected:
+private:
friend class SBBreakpoint;
friend class SBBreakpointLocation;
friend class SBFrame;
@@ -117,11 +113,9 @@ protected:
friend class lldb_private::QueueImpl;
friend class SBQueueItem;
-#ifndef SWIG
+ lldb_private::ThreadPlan *get();
void SetThreadPlan(const lldb::ThreadPlanSP &lldb_object_sp);
-#endif
-private:
lldb::ThreadPlanSP m_opaque_sp;
};
OpenPOWER on IntegriCloud