From bd334efd0aec3d26d7ace3c5f8b858b07e0bb9bd Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 11 Feb 2019 16:14:02 +0000 Subject: Simplify ObjectFile::GetUUID instead of returning the UUID through by-ref argument and a boolean value indicating success, we can just return it directly. Since the UUID class already has an invalid state, it can be used to denote the failure without the additional bool. llvm-svn: 353714 --- lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp') diff --git a/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp b/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp index d1e9a5d3d63..ec5500622a4 100644 --- a/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp +++ b/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp @@ -166,9 +166,9 @@ void ObjectFileJIT::Dump(Stream *s) { } } -bool ObjectFileJIT::GetUUID(lldb_private::UUID *uuid) { +UUID ObjectFileJIT::GetUUID() { // TODO: maybe get from delegate, not needed for first pass - return false; + return UUID(); } uint32_t ObjectFileJIT::GetDependentModules(FileSpecList &files) { -- cgit v1.2.3