aboutsummaryrefslogtreecommitdiff
path: root/source/Utility/UserID.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-04-16 16:04:10 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-04-16 16:04:10 +0000
commit74a628f776edb588bff8f8f5cc16eac947c9d631 (patch)
treedc32e010ac4902621e5a279bfeb48628f7f0e166 /source/Utility/UserID.cpp
parentafed7be32164a598f8172282c249af7266c48b46 (diff)
Diffstat (limited to 'source/Utility/UserID.cpp')
-rw-r--r--source/Utility/UserID.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/source/Utility/UserID.cpp b/source/Utility/UserID.cpp
new file mode 100644
index 000000000000..e65b8fa87d81
--- /dev/null
+++ b/source/Utility/UserID.cpp
@@ -0,0 +1,21 @@
+//===-- UserID.cpp ----------------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "lldb/Utility/UserID.h"
+#include "lldb/Utility/Stream.h"
+
+#include <inttypes.h>
+
+using namespace lldb;
+using namespace lldb_private;
+
+Stream &lldb_private::operator<<(Stream &strm, const UserID &uid) {
+ strm.Printf("{0x%8.8" PRIx64 "}", uid.GetID());
+ return strm;
+}