diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2015-11-04 22:32:32 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2015-11-04 22:32:32 +0000 |
commit | ffec81ca0095fc22a2544f3cd42320a80899c15d (patch) | |
tree | 4a8de783b53d24ee3952af65645d949ef2c83904 /llvm/tools/llvm-size/llvm-size.cpp | |
parent | dd23974a5d860188e8c4a114788458929de039d3 (diff) | |
download | bcm5719-llvm-ffec81ca0095fc22a2544f3cd42320a80899c15d.tar.gz bcm5719-llvm-ffec81ca0095fc22a2544f3cd42320a80899c15d.zip |
Fix some Clang-tidy modernize warnings, other minor fixes.
Fixed warnings are: modernize-use-override, modernize-use-nullptr and modernize-redundant-void-arg.
Differential revision: http://reviews.llvm.org/D14312
llvm-svn: 252087
Diffstat (limited to 'llvm/tools/llvm-size/llvm-size.cpp')
-rw-r--r-- | llvm/tools/llvm-size/llvm-size.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/tools/llvm-size/llvm-size.cpp b/llvm/tools/llvm-size/llvm-size.cpp index de2b0450523..bb299884f25 100644 --- a/llvm/tools/llvm-size/llvm-size.cpp +++ b/llvm/tools/llvm-size/llvm-size.cpp @@ -1,4 +1,4 @@ -//===-- llvm-size.cpp - Print the size of each object section -------------===// +//===-- llvm-size.cpp - Print the size of each object section ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -30,6 +30,7 @@ #include <algorithm> #include <string> #include <system_error> + using namespace llvm; using namespace object; @@ -98,7 +99,7 @@ static size_t getNumLengthAsString(uint64_t num) { } /// @brief Return the printing format for the Radix. -static const char *getRadixFmt(void) { +static const char *getRadixFmt() { switch (Radix) { case octal: return PRIo64; |