[Lldb-commits] [lldb] r107460 - in /lldb/trunk: include/lldb/Core/Stream.h source/Core/Stream.cpp
Sean Callanan
scallanan at apple.com
Thu Jul 1 19:43:42 PDT 2010
Author: spyffe
Date: Thu Jul 1 21:43:42 2010
New Revision: 107460
URL: http://llvm.org/viewvc/llvm-project?rev=107460&view=rev
Log:
Added a method to get a stream's byte order.
Modified:
lldb/trunk/include/lldb/Core/Stream.h
lldb/trunk/source/Core/Stream.cpp
Modified: lldb/trunk/include/lldb/Core/Stream.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/Stream.h?rev=107460&r1=107459&r2=107460&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/Stream.h (original)
+++ lldb/trunk/include/lldb/Core/Stream.h Thu Jul 1 21:43:42 2010
@@ -436,6 +436,15 @@
//------------------------------------------------------------------
const Flags&
GetFlags() const;
+
+ //------------------------------------------------------------------
+ //// The byte order accessor.
+ ////
+ //// @return
+ //// The byte order.
+ //------------------------------------------------------------------
+ lldb::ByteOrder
+ GetByteOrder() const;
//------------------------------------------------------------------
/// Get the current indentation level.
Modified: lldb/trunk/source/Core/Stream.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Stream.cpp?rev=107460&r1=107459&r2=107460&view=diff
==============================================================================
--- lldb/trunk/source/Core/Stream.cpp (original)
+++ lldb/trunk/source/Core/Stream.cpp Thu Jul 1 21:43:42 2010
@@ -461,6 +461,16 @@
return m_flags;
}
+//------------------------------------------------------------------
+// The byte order get accessor
+//------------------------------------------------------------------
+
+lldb::ByteOrder
+Stream::GetByteOrder() const
+{
+ return m_byte_order;
+}
+
int
Stream::PrintfAsRawHex8 (const char *format, ...)
{
More information about the lldb-commits
mailing list