summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/lldb/source/Utility/UserID.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Utility/UserID.cpp')
-rw-r--r--contrib/llvm/tools/lldb/source/Utility/UserID.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/llvm/tools/lldb/source/Utility/UserID.cpp b/contrib/llvm/tools/lldb/source/Utility/UserID.cpp
new file mode 100644
index 0000000..e65b8fa
--- /dev/null
+++ b/contrib/llvm/tools/lldb/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;
+}
OpenPOWER on IntegriCloud