[Lldb-commits] [PATCH] D29514: Change Error::PutToLog to LLDB_LOG_ERROR

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 3 15:07:18 PST 2017


Compiles on Windows, I will watch the bots to see if anything breaks on
Linux/ OSX.

On Fri, Feb 3, 2017 at 3:03 PM Pavel Labath via Phabricator <
reviews at reviews.llvm.org> wrote:

> labath accepted this revision.
> labath added a comment.
> This revision is now accepted and ready to land.
>
> looks good, just make sure it compiles.
>
>
>
> ================
> Comment at: lldb/include/lldb/Core/Log.h:18
>  #include "lldb/Utility/ConstString.h"
> +#include "lldb/Utility/Error.h"
>  #include "lldb/lldb-private.h"
> ----------------
> This is also unnecessary.
>
>
> ================
> Comment at: lldb/include/lldb/Utility/Error.h:14
>
> +#include "llvm/ADT/StringRef.h"
> +#include "llvm/ADT/Twine.h"
> ----------------
> All these includes are now unnecessary :)
>
>
> ================
> Comment at: lldb/source/Host/common/Host.cpp:911
>            eErrorTypePOSIX);
> -      if (log && (error.Fail() || log))
> -        error.PutToLog(log,
> ----------------
> lol :)
>
>
> ================
> Comment at: lldb/source/Host/common/Host.cpp:952
> +      if (error.Fail())
> +        LLDB_LOG_ERROR(
> +            log, error, "posix_spawn_file_actions_addopen (action={0}, "
> ----------------
> looks like you forgot this one.
>
>
> https://reviews.llvm.org/D29514
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170203/abcd01d8/attachment.html>


More information about the lldb-commits mailing list