From a64c3aa1f5df205775143a9de24e118dcd996654 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 22 Jun 2018 22:20:10 +0000 Subject: [PATCH] [llvm-size] Make global variables static git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335397 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-size/llvm-size.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/llvm-size/llvm-size.cpp b/tools/llvm-size/llvm-size.cpp index 20a0e2f3e0b..67c81ec9e7c 100644 --- a/tools/llvm-size/llvm-size.cpp +++ b/tools/llvm-size/llvm-size.cpp @@ -68,7 +68,7 @@ cl::opt static cl::list 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 @@ -93,7 +93,7 @@ static cl::alias TotalSizesShort("t", cl::desc("Short for --totals"), static cl::list InputFilenames(cl::Positional, cl::desc(""), cl::ZeroOrMore); -bool HadError = false; +static bool HadError = false; static std::string ToolName;