diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2015-07-21 11:30:39 +0000 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2015-07-21 11:30:39 +0000 |
commit | 8d60fac5bab0e378fff6b9cafaba80fd3c1e2d2a (patch) | |
tree | 712e6970785f933ec4c1c13d18e4f61505f922eb /llvm/tools/llvm-readobj/llvm-readobj.cpp | |
parent | 81457feffb2845dfc3a33e1b8fc2ca2f0077f7a3 (diff) | |
download | llvm-8d60fac5bab0e378fff6b9cafaba80fd3c1e2d2a.zip llvm-8d60fac5bab0e378fff6b9cafaba80fd3c1e2d2a.tar.gz llvm-8d60fac5bab0e378fff6b9cafaba80fd3c1e2d2a.tar.bz2 |
[lldb-mi] Simplify MICmnMIResultRecord implementation.
Summary:
* Remove extraneous members that were just storing temporary
values.
* ResultClass_e parameters don't need to be const as they are
scalars.
* Switch from a map with CMIUtilString values to using a mapping
function. This uses a switch statement which will generate
a warning if a new result class is added.
* Make BuildRecordResult a static function rather than a private
member function so that we can construct the result text
correctly and avoid having extra stuff in the header.
* Don't need (void) parameter lists in C++.
Reviewers: abidh, ki.stfu, domipheus
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D11052
llvm-svn: 242769
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions