From 7a47bd9f022a6fbd9f7aa5cfee5e19bbb783d7f7 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Mon, 14 Jun 2010 04:30:13 +0000 Subject: [PATCH] Move posix specific files into posix subdirectory so they can be shared with linux. Updated Xcode project. llvm-svn: 105928 --- lldb/lldb.xcodeproj/project.pbxproj | 16 ++++++++++++---- lldb/source/Host/{macosx => posix}/Condition.cpp | 0 lldb/source/Host/{macosx => posix}/Mutex.cpp | 6 ++++-- 3 files changed, 16 insertions(+), 6 deletions(-) rename lldb/source/Host/{macosx => posix}/Condition.cpp (100%) rename lldb/source/Host/{macosx => posix}/Mutex.cpp (97%) diff --git a/lldb/lldb.xcodeproj/project.pbxproj b/lldb/lldb.xcodeproj/project.pbxproj index 84649183c1ab..1c13dddd9c6a 100644 --- a/lldb/lldb.xcodeproj/project.pbxproj +++ b/lldb/lldb.xcodeproj/project.pbxproj @@ -794,9 +794,9 @@ 26BC7ED610F1B86700F91463 /* ClangExpressionVariable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ClangExpressionVariable.cpp; path = source/Expression/ClangExpressionVariable.cpp; sourceTree = ""; }; 26BC7ED710F1B86700F91463 /* ClangStmtVisitor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ClangStmtVisitor.cpp; path = source/Expression/ClangStmtVisitor.cpp; sourceTree = ""; }; 26BC7ED810F1B86700F91463 /* DWARFExpression.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = DWARFExpression.cpp; path = source/Expression/DWARFExpression.cpp; sourceTree = ""; }; - 26BC7EE710F1B88F00F91463 /* Condition.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Condition.cpp; path = source/Host/macosx/Condition.cpp; sourceTree = ""; }; + 26BC7EE710F1B88F00F91463 /* Condition.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Condition.cpp; path = source/Host/posix/Condition.cpp; sourceTree = ""; }; 26BC7EE810F1B88F00F91463 /* Host.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = Host.mm; path = source/Host/macosx/Host.mm; sourceTree = ""; }; - 26BC7EE910F1B88F00F91463 /* Mutex.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Mutex.cpp; path = source/Host/macosx/Mutex.cpp; sourceTree = ""; }; + 26BC7EE910F1B88F00F91463 /* Mutex.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Mutex.cpp; path = source/Host/posix/Mutex.cpp; sourceTree = ""; }; 26BC7EED10F1B8AD00F91463 /* CFCBundle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CFCBundle.cpp; path = source/Host/macosx/cfcpp/CFCBundle.cpp; sourceTree = ""; }; 26BC7EEE10F1B8AD00F91463 /* CFCBundle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CFCBundle.h; path = source/Host/macosx/cfcpp/CFCBundle.h; sourceTree = ""; }; 26BC7EEF10F1B8AD00F91463 /* CFCData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CFCData.cpp; path = source/Host/macosx/cfcpp/CFCData.cpp; sourceTree = ""; }; @@ -1860,6 +1860,7 @@ isa = PBXGroup; children = ( 26BC7EE510F1B88100F91463 /* MacOSX */, + 26F62BB211C5E6C300358180 /* posix */, 26BC7DD210F1B7D500F91463 /* Condition.h */, 26BC7DD310F1B7D500F91463 /* Endian.h */, 26BC7DD410F1B7D500F91463 /* Host.h */, @@ -1985,9 +1986,7 @@ 26BC7EF710F1B8AD00F91463 /* CFCReleaser.h */, 26BC7EF810F1B8AD00F91463 /* CFCString.cpp */, 26BC7EF910F1B8AD00F91463 /* CFCString.h */, - 26BC7EE710F1B88F00F91463 /* Condition.cpp */, 26BC7EE810F1B88F00F91463 /* Host.mm */, - 26BC7EE910F1B88F00F91463 /* Mutex.cpp */, 2689B0B5113EE47E00A4AEDB /* Symbols.cpp */, 26B4E28B112F5DCD00AB3F64 /* TimeValue.cpp */, ); @@ -2039,6 +2038,15 @@ sourceTree = ""; usesTabs = 0; }; + 26F62BB211C5E6C300358180 /* posix */ = { + isa = PBXGroup; + children = ( + 26BC7EE710F1B88F00F91463 /* Condition.cpp */, + 26BC7EE910F1B88F00F91463 /* Mutex.cpp */, + ); + name = posix; + sourceTree = ""; + }; 493C63D711891A8000914D5E /* ABI */ = { isa = PBXGroup; children = ( diff --git a/lldb/source/Host/macosx/Condition.cpp b/lldb/source/Host/posix/Condition.cpp similarity index 100% rename from lldb/source/Host/macosx/Condition.cpp rename to lldb/source/Host/posix/Condition.cpp diff --git a/lldb/source/Host/macosx/Mutex.cpp b/lldb/source/Host/posix/Mutex.cpp similarity index 97% rename from lldb/source/Host/macosx/Mutex.cpp rename to lldb/source/Host/posix/Mutex.cpp index ab0b67aa0511..3f1c83066994 100644 --- a/lldb/source/Host/macosx/Mutex.cpp +++ b/lldb/source/Host/posix/Mutex.cpp @@ -8,10 +8,12 @@ //===----------------------------------------------------------------------===// #include "lldb/Host/Mutex.h" -#include "lldb/Core/Log.h" #if 0 -#include "lldb/Host/Host.h" +// This logging is way too verbose to enable even for a log channel. +// This logging can be enabled by changing the "#if 0", but should be +// reverted prior to checking in. +#include #define DEBUG_LOG(fmt, ...) printf(fmt, ## __VA_ARGS__) #else #define DEBUG_LOG(fmt, ...)