aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-24 22:08:59 +0000
committerOwen Anderson <resistor@mac.com>2009-06-24 22:08:59 +0000
commit9fae9a3fd01cdf28bd65099a8be81a3297837f7d (patch)
tree14f57d9f0d7460c6aedd6f18e864ddaaf3f59f93 /lib
parent181f7cee9c7b9396ebf428465f03ab49ea113e66 (diff)
downloadexternal_llvm-9fae9a3fd01cdf28bd65099a8be81a3297837f7d.zip
external_llvm-9fae9a3fd01cdf28bd65099a8be81a3297837f7d.tar.gz
external_llvm-9fae9a3fd01cdf28bd65099a8be81a3297837f7d.tar.bz2
Get rid of a static boolean.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74125 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/ProfileInfoLoader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/ProfileInfoLoader.cpp b/lib/Analysis/ProfileInfoLoader.cpp
index 3a0a740..adb2bdc 100644
--- a/lib/Analysis/ProfileInfoLoader.cpp
+++ b/lib/Analysis/ProfileInfoLoader.cpp
@@ -73,7 +73,8 @@ static void ReadProfilingBlock(const char *ToolName, FILE *F,
//
ProfileInfoLoader::ProfileInfoLoader(const char *ToolName,
const std::string &Filename,
- Module &TheModule) : M(TheModule) {
+ Module &TheModule) :
+ M(TheModule), Warned(false) {
FILE *F = fopen(Filename.c_str(), "r");
if (F == 0) {
cerr << ToolName << ": Error opening '" << Filename << "': ";
@@ -200,7 +201,6 @@ void ProfileInfoLoader::getBlockCounts(std::vector<std::pair<BasicBlock*,
Counts.back().second += EdgeCounts[i].second;
unsigned SuccNum = EdgeCounts[i].first.second;
if (SuccNum >= TI->getNumSuccessors()) {
- static bool Warned = false;
if (!Warned) {
cerr << "WARNING: profile info doesn't seem to match"
<< " the program!\n";