Trivial cleanups: no need to include header twice. Global variable is local to file
authorChris Lattner <sabre@nondot.org>
Thu, 31 Jul 2003 19:31:21 +0000 (19:31 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 31 Jul 2003 19:31:21 +0000 (19:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7456 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Timer.cpp
support/lib/Support/Timer.cpp

index 79d4c1cfe82748f39262f2302a96db629fa232f7..e4c085d266ad3879d5ea89fb05613aacefd4d5e4 100644 (file)
@@ -4,8 +4,6 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "Config/malloc.h"
-
 #include "Support/Timer.h"
 #include "Support/CommandLine.h"
 
@@ -19,7 +17,7 @@
 #include <functional>
 #include <fstream>
 
-std::string LibSupportInfoOutputFilename;
+static std::string LibSupportInfoOutputFilename;
 
 namespace {
 #ifdef HAVE_MALLINFO
index 79d4c1cfe82748f39262f2302a96db629fa232f7..e4c085d266ad3879d5ea89fb05613aacefd4d5e4 100644 (file)
@@ -4,8 +4,6 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "Config/malloc.h"
-
 #include "Support/Timer.h"
 #include "Support/CommandLine.h"
 
@@ -19,7 +17,7 @@
 #include <functional>
 #include <fstream>
 
-std::string LibSupportInfoOutputFilename;
+static std::string LibSupportInfoOutputFilename;
 
 namespace {
 #ifdef HAVE_MALLINFO