aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-01-03 10:37:19 +0000
committerPavel Labath <pavel@labath.sk>2019-01-03 10:37:19 +0000
commitf760f5aef404b0767c06f64da219032e3e7bb3bd (patch)
tree2b87b4cb47e47a1550ba4631f67deb642fc1f146 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
parent4d752a88e828120d51187beb51773300118200b2 (diff)
downloadllvm-f760f5aef404b0767c06f64da219032e3e7bb3bd.zip
llvm-f760f5aef404b0767c06f64da219032e3e7bb3bd.tar.gz
llvm-f760f5aef404b0767c06f64da219032e3e7bb3bd.tar.bz2
Simplify ObjectFile::GetArchitecture
Summary: instead of returning the architecture through by-ref argument and a boolean value indicating success, we can just return the ArchSpec directly. Since the ArchSpec already has an invalid state, it can be used to denote the failure without the additional bool. Reviewers: clayborg, zturner, espindola Subscribers: emaste, arichardson, JDevlieghere, lldb-commits Differential Revision: https://reviews.llvm.org/D56129 llvm-svn: 350291
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h')
-rw-r--r--lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
index 2e6478a..ff08eb2 100644
--- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
+++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
@@ -121,7 +121,7 @@ public:
void Dump(lldb_private::Stream *s) override;
- bool GetArchitecture(lldb_private::ArchSpec &arch) override;
+ lldb_private::ArchSpec GetArchitecture() override;
bool GetUUID(lldb_private::UUID *uuid) override;