summaryrefslogtreecommitdiff
path: root/lldb/source/API/SBHostOS.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-04-18 21:39:23 +0000
committerBill Wendling <isanbard@gmail.com>2012-04-18 21:39:23 +0000
commit392e4fbdd9b152efff4c051286f6b2c21270c902 (patch)
tree4ac339be2c4c7c596f068b59d5e512b157c7b433 /lldb/source/API/SBHostOS.cpp
parenteb1c2bdc1f55fbc5d1e7bb86e9f0e038b0f5adb7 (diff)
Creating release_31 branchllvmorg-3.1.0-rc1
llvm-svn: 155059 llvm-svn: 155053 llvm-svn: 155051
Diffstat (limited to 'lldb/source/API/SBHostOS.cpp')
-rw-r--r--lldb/source/API/SBHostOS.cpp73
1 files changed, 0 insertions, 73 deletions
diff --git a/lldb/source/API/SBHostOS.cpp b/lldb/source/API/SBHostOS.cpp
deleted file mode 100644
index 573e0557aa8e..000000000000
--- a/lldb/source/API/SBHostOS.cpp
+++ /dev/null
@@ -1,73 +0,0 @@
-//===-- SBHostOS.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/API/SBHostOS.h"
-#include "lldb/API/SBError.h"
-#include "lldb/Host/FileSpec.h"
-#include "lldb/Core/Log.h"
-#include "lldb/Host/Host.h"
-
-using namespace lldb;
-using namespace lldb_private;
-
-
-
-SBFileSpec
-SBHostOS::GetProgramFileSpec ()
-{
- SBFileSpec sb_filespec;
- sb_filespec.SetFileSpec (Host::GetProgramFileSpec ());
- return sb_filespec;
-}
-
-lldb::thread_t
-SBHostOS::ThreadCreate
-(
- const char *name,
- void *(*thread_function)(void *),
- void *thread_arg,
- SBError *error_ptr
-)
-{
- LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-
- if (log)
- log->Printf ("SBHostOS::ThreadCreate (name=\"%s\", thread_function=%p, thread_arg=%p, error_ptr=%p)", name,
- thread_function, thread_arg, error_ptr);
-
- // FIXME: You should log the return value?
-
- return Host::ThreadCreate (name, thread_function, thread_arg, error_ptr ? error_ptr->get() : NULL);
-}
-
-void
-SBHostOS::ThreadCreated (const char *name)
-{
- Host::ThreadCreated (name);
-}
-
-bool
-SBHostOS::ThreadCancel (lldb::thread_t thread, SBError *error_ptr)
-{
- return Host::ThreadCancel (thread, error_ptr ? error_ptr->get() : NULL);
-}
-
-bool
-SBHostOS::ThreadDetach (lldb::thread_t thread, SBError *error_ptr)
-{
- return Host::ThreadDetach (thread, error_ptr ? error_ptr->get() : NULL);
-}
-
-bool
-SBHostOS::ThreadJoin (lldb::thread_t thread, void **result, SBError *error_ptr)
-{
- return Host::ThreadJoin (thread, result, error_ptr ? error_ptr->get() : NULL);
-}
-
-