NFC. Add comment about debugserver usage
authorChris Bieneman <beanz@apple.com>
Thu, 27 Apr 2017 19:45:16 +0000 (19:45 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 27 Apr 2017 19:45:16 +0000 (19:45 +0000)
This just adds a comment to SocketAddress about it being used by debugserver and the implications of that.

If we need to make changes to this class that make it unsuitable for debugserver we can re-implement the minimal abstractions we need from this file in debugserver. I would prefer not to do that because code duplication is bad. Nuff said.

llvm-svn: 301580

lldb/source/Host/common/SocketAddress.cpp

index 5423824..440ae5d 100644 (file)
@@ -6,6 +6,12 @@
 // License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
+//
+// Note: This file is used on Darwin by debugserver, so it needs to remain as
+//       self contained as possible, and devoid of references to LLVM unless 
+//       there is compelling reason.
+//
+//===----------------------------------------------------------------------===//
 
 #if defined(_MSC_VER)
 #define _WINSOCK_DEPRECATED_NO_WARNINGS