diff options
author | Fangrui Song <maskray@google.com> | 2018-06-22 22:20:10 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-06-22 22:20:10 +0000 |
commit | 1e2d5cb06c4543f0c49beb8b585d63a90e915499 (patch) | |
tree | b60d4a4e803b697d9932aba67e2f60ebae9af838 /llvm/tools/llvm-size/llvm-size.cpp | |
parent | 80b85a46db58dafd6957a09dcd24a146f473e8b7 (diff) | |
download | bcm5719-llvm-1e2d5cb06c4543f0c49beb8b585d63a90e915499.tar.gz bcm5719-llvm-1e2d5cb06c4543f0c49beb8b585d63a90e915499.zip |
[llvm-size] Make global variables static
llvm-svn: 335397
Diffstat (limited to 'llvm/tools/llvm-size/llvm-size.cpp')
-rw-r--r-- | llvm/tools/llvm-size/llvm-size.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-size/llvm-size.cpp b/llvm/tools/llvm-size/llvm-size.cpp index 20a0e2f3e0b..67c81ec9e7c 100644 --- a/llvm/tools/llvm-size/llvm-size.cpp +++ b/llvm/tools/llvm-size/llvm-size.cpp @@ -68,7 +68,7 @@ cl::opt<bool> static cl::list<std::string> ArchFlags("arch", cl::desc("architecture(s) from a Mach-O file to dump"), cl::ZeroOrMore); -bool ArchAll = false; +static bool ArchAll = false; enum RadixTy { octal = 8, decimal = 10, hexadecimal = 16 }; static cl::opt<unsigned int> @@ -93,7 +93,7 @@ static cl::alias TotalSizesShort("t", cl::desc("Short for --totals"), static cl::list<std::string> InputFilenames(cl::Positional, cl::desc("<input files>"), cl::ZeroOrMore); -bool HadError = false; +static bool HadError = false; static std::string ToolName; |