Change HostThread::GetNativeThread() to return a derived reference.
authorZachary Turner <zturner@google.com>
Mon, 17 Nov 2014 22:42:57 +0000 (22:42 +0000)
committerZachary Turner <zturner@google.com>
Mon, 17 Nov 2014 22:42:57 +0000 (22:42 +0000)
commitc30189921e45c303d0a5b2ae26573fa7991bdfd4
treeb6e584a78101a931a597431ca0d59830a7d290dc
parent5453933867feb886b3c72160dc5d0882e6417fe9
Change HostThread::GetNativeThread() to return a derived reference.

Previously using HostThread::GetNativeThread() required an ugly
cast to most-derived type.  This solves the issue by simply returning
the derived type directly.

llvm-svn: 222185
lldb/include/lldb/Host/HostNativeThread.h
lldb/include/lldb/Host/HostNativeThreadForward.h [new file with mode: 0644]
lldb/include/lldb/Host/HostThread.h
lldb/source/API/SBHostOS.cpp
lldb/source/Host/common/HostThread.cpp
lldb/source/Plugins/Process/Windows/DebuggerThread.cpp
lldb/source/Plugins/Process/Windows/ProcessWindows.cpp
lldb/source/Plugins/Process/Windows/TargetThreadWindows.cpp