diff options
author | Pavel Labath <pavel@labath.sk> | 2019-02-11 16:14:02 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-02-11 16:14:02 +0000 |
commit | bd334efd0aec3d26d7ace3c5f8b858b07e0bb9bd (patch) | |
tree | 48a468ce6ce77ac4fc7b841e80a753e8459b8ff1 /lldb/source/Core/Module.cpp | |
parent | 5caa550649740ee39ec09cbb195129d1687ca880 (diff) | |
download | bcm5719-llvm-bd334efd0aec3d26d7ace3c5f8b858b07e0bb9bd.tar.gz bcm5719-llvm-bd334efd0aec3d26d7ace3c5f8b858b07e0bb9bd.zip |
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
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r-- | lldb/source/Core/Module.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index c10ea779bc7..77d1ab123d1 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -330,7 +330,7 @@ const lldb_private::UUID &Module::GetUUID() { ObjectFile *obj_file = GetObjectFile(); if (obj_file != nullptr) { - obj_file->GetUUID(&m_uuid); + m_uuid = obj_file->GetUUID(); m_did_set_uuid = true; } } |