[Lldb-commits] [lldb] r319938 - Fix an -Wunused-function warning, NFC
Vedant Kumar via lldb-commits
lldb-commits at lists.llvm.org
Wed Dec 6 11:21:11 PST 2017
Author: vedantk
Date: Wed Dec 6 11:21:11 2017
New Revision: 319938
URL: http://llvm.org/viewvc/llvm-project?rev=319938&view=rev
Log:
Fix an -Wunused-function warning, NFC
Modified:
lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm
Modified: lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm?rev=319938&r1=319937&r2=319938&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm (original)
+++ lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm Wed Dec 6 11:21:11 2017
@@ -45,26 +45,6 @@
#include "CFBundle.h"
#include "CFString.h"
-static void SplitEventData(const char *data, std::vector<std::string> &elements)
-{
- elements.clear();
- if (!data)
- return;
-
- const char *start = data;
-
- while (*start != '\0') {
- const char *token = strchr(start, ':');
- if (!token) {
- elements.push_back(std::string(start));
- return;
- }
- if (token != start)
- elements.push_back(std::string(start, token - start));
- start = ++token;
- }
-}
-
#ifdef WITH_SPRINGBOARD
#include <CoreFoundation/CoreFoundation.h>
@@ -210,6 +190,28 @@ static bool CallBoardSystemServiceOpenAp
}
#endif
+#if defined(WITH_FBS) || defined(WITH_FBS)
+static void SplitEventData(const char *data, std::vector<std::string> &elements)
+{
+ elements.clear();
+ if (!data)
+ return;
+
+ const char *start = data;
+
+ while (*start != '\0') {
+ const char *token = strchr(start, ':');
+ if (!token) {
+ elements.push_back(std::string(start));
+ return;
+ }
+ if (token != start)
+ elements.push_back(std::string(start, token - start));
+ start = ++token;
+ }
+}
+#endif
+
#ifdef WITH_BKS
#import <Foundation/Foundation.h>
extern "C" {
More information about the lldb-commits
mailing list