When printing warnings, the repeat_key should be
authorSean Callanan <scallanan@apple.com>
Wed, 9 Dec 2015 01:25:01 +0000 (01:25 +0000)
committerSean Callanan <scallanan@apple.com>
Wed, 9 Dec 2015 01:25:01 +0000 (01:25 +0000)
const void * because the data is never accessed,
the pointer is the only useful piece of data.

llvm-svn: 255090

lldb/include/lldb/Target/Process.h
lldb/source/Target/Process.cpp

index ae33d30..2e063c5 100644 (file)
@@ -3201,7 +3201,7 @@ protected:
     ///     printf style format string
     //------------------------------------------------------------------
     void
-    PrintWarning (uint64_t warning_type, void *repeat_key, const char *fmt, ...) __attribute__((format(printf, 4, 5)));
+    PrintWarning (uint64_t warning_type, const void *repeat_key, const char *fmt, ...) __attribute__((format(printf, 4, 5)));
     
     //------------------------------------------------------------------
     // NextEventAction provides a way to register an action on the next
@@ -3286,7 +3286,7 @@ protected:
     // Type definitions
     //------------------------------------------------------------------
     typedef std::map<lldb::LanguageType, lldb::LanguageRuntimeSP> LanguageRuntimeCollection;
-    typedef std::unordered_set<void *> WarningsPointerSet;
+    typedef std::unordered_set<const void *> WarningsPointerSet;
     typedef std::map<uint64_t, WarningsPointerSet> WarningsCollection;
 
     struct PreResumeCallbackAndBaton
index cbe2d58..3297add 100644 (file)
@@ -6400,7 +6400,7 @@ Process::ModulesDidLoad (ModuleList &module_list)
 }
 
 void
-Process::PrintWarning (uint64_t warning_type, void *repeat_key, const char *fmt, ...)
+Process::PrintWarning (uint64_t warning_type, const void *repeat_key, const char *fmt, ...)
 {
     bool print_warning = true;