[Lldb-commits] [lldb] r264113 - Reverted a change in r264074 that made lldb-mi use lldb_private APIs.

Sean Callanan via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 22 15:42:42 PDT 2016


Author: spyffe
Date: Tue Mar 22 17:42:42 2016
New Revision: 264113

URL: http://llvm.org/viewvc/llvm-project?rev=264113&view=rev
Log:
Reverted a change in r264074 that made lldb-mi use lldb_private APIs.

FileSystem::Fopen is a lldb_private API, but lldb-mi uses only the
public API.  Depending on lldb_private APIs makes Xcode builds fail.
I reverted the portion of r264074 that added such a dependency.

Modified:
    lldb/trunk/tools/lldb-mi/MIUtilFileStd.cpp

Modified: lldb/trunk/tools/lldb-mi/MIUtilFileStd.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MIUtilFileStd.cpp?rev=264113&r1=264112&r2=264113&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MIUtilFileStd.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MIUtilFileStd.cpp Tue Mar 22 17:42:42 2016
@@ -231,7 +231,8 @@ CMIUtilFileStd::IsFileExist(const CMIUti
     if (vFileNamePath.empty())
         return false;
 
-    FILE *pTmp = lldb_private::FileSystem::Fopen(vFileNamePath.c_str(), "wb");
+    FILE *pTmp = nullptr;
+    pTmp = ::fopen(vFileNamePath.c_str(), "wb");
     if (pTmp != nullptr)
     {
         ::fclose(pTmp);




More information about the lldb-commits mailing list