Greg Clayton d8c3d4b1e9 Implemented a types.py module that allows types to be inspected for padding.
The script was able to point out and save 40 bytes in each lldb_private::Section by being very careful where we need to have virtual destructors and also by re-ordering members.

llvm-svn: 184364
2013-06-19 21:50:28 +00:00

24 lines
620 B
C++

//===-- 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/Core/UserID.h"
#include "lldb/Core/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;
}