summaryrefslogtreecommitdiffstats
path: root/lldb/source/Initialization/SystemInitializerCommon.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-02-23 10:33:16 +0000
committerPavel Labath <labath@google.com>2017-02-23 10:33:16 +0000
commitc29f7ff33464f14663c21b4d35a038a79189c709 (patch)
treec4aaf358fa4c240c1264f19e3659d018c3084245 /lldb/source/Initialization/SystemInitializerCommon.cpp
parentd8d32bb3d1bd5e68aaa7f4eb0642e3832f11674f (diff)
downloadbcm5719-llvm-c29f7ff33464f14663c21b4d35a038a79189c709.tar.gz
bcm5719-llvm-c29f7ff33464f14663c21b4d35a038a79189c709.zip
Switch "posix" to the new log channel registration mechanism
Summary: This also removes magic rename code, which caused the channel to be called "linux" when built on a linux machine, and "freebsd" when built on a freebsd one, which seems unnecessary - registering a new channel is sufficiently simple now that if we wish to log something extremely os-specific, we can just create a new channel. None of the current categories seem very specific to one OS or another. Reviewers: emaste, krytarowski Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D30250 llvm-svn: 295954
Diffstat (limited to 'lldb/source/Initialization/SystemInitializerCommon.cpp')
-rw-r--r--lldb/source/Initialization/SystemInitializerCommon.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lldb/source/Initialization/SystemInitializerCommon.cpp b/lldb/source/Initialization/SystemInitializerCommon.cpp
index 4b2f36b891e..dcb46e9257b 100644
--- a/lldb/source/Initialization/SystemInitializerCommon.cpp
+++ b/lldb/source/Initialization/SystemInitializerCommon.cpp
@@ -26,7 +26,7 @@
#include "Plugins/ObjectFile/Mach-O/ObjectFileMachO.h"
#endif
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD__)
#include "Plugins/Process/POSIX/ProcessPOSIXLog.h"
#endif
@@ -93,9 +93,8 @@ void SystemInitializerCommon::Initialize() {
#if defined(__APPLE__)
ObjectFileMachO::Initialize();
#endif
-#if defined(__linux__)
- static ConstString g_linux_log_name("linux");
- ProcessPOSIXLog::Initialize(g_linux_log_name);
+#if defined(__linux__) || defined(__FreeBSD__)
+ ProcessPOSIXLog::Initialize();
#endif
#if defined(_MSC_VER)
ProcessWindowsLog::Initialize();
OpenPOWER on IntegriCloud