diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-21 21:13:18 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-21 21:13:18 +0000 |
commit | 2b37d7cf28b1382420b5e4007042feeb66d21ac8 (patch) | |
tree | edf1e11bc9d3208c7e04392a840f8812b506a751 /lib/Analysis/ProfileInfoLoader.cpp | |
parent | 019b63931b946a7dbf55282f4dce7d94d617c5fb (diff) | |
download | external_llvm-2b37d7cf28b1382420b5e4007042feeb66d21ac8.zip external_llvm-2b37d7cf28b1382420b5e4007042feeb66d21ac8.tar.gz external_llvm-2b37d7cf28b1382420b5e4007042feeb66d21ac8.tar.bz2 |
Remove trailing whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21416 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ProfileInfoLoader.cpp')
-rw-r--r-- | lib/Analysis/ProfileInfoLoader.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/Analysis/ProfileInfoLoader.cpp b/lib/Analysis/ProfileInfoLoader.cpp index 809dbf3..15e9c13 100644 --- a/lib/Analysis/ProfileInfoLoader.cpp +++ b/lib/Analysis/ProfileInfoLoader.cpp @@ -1,10 +1,10 @@ //===- ProfileInfoLoad.cpp - Load profile information from disk -----------===// -// +// // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. -// +// //===----------------------------------------------------------------------===// // // The ProfileInfoLoader class is used to load and represent profiling @@ -26,9 +26,9 @@ using namespace llvm; // static inline unsigned ByteSwap(unsigned Var, bool Really) { if (!Really) return Var; - return ((Var & (255<< 0)) << 24) | - ((Var & (255<< 8)) << 8) | - ((Var & (255<<16)) >> 8) | + return ((Var & (255<< 0)) << 24) | + ((Var & (255<< 8)) << 8) | + ((Var & (255<<16)) >> 8) | ((Var & (255<<24)) >> 24); } @@ -57,7 +57,7 @@ static void ReadProfilingBlock(const char *ToolName, FILE *F, // Make sure we have enough space... if (Data.size() < NumEntries) Data.resize(NumEntries); - + // Accumulate the data we just read into the data. if (!ShouldByteSwap) { for (unsigned i = 0; i != NumEntries; ++i) @@ -112,11 +112,11 @@ ProfileInfoLoader::ProfileInfoLoader(const char *ToolName, CommandLines.push_back(std::string(&Chars[0], &Chars[ArgLength])); break; } - + case FunctionInfo: ReadProfilingBlock(ToolName, F, ShouldByteSwap, FunctionCounts); break; - + case BlockInfo: ReadProfilingBlock(ToolName, F, ShouldByteSwap, BlockCounts); break; @@ -134,7 +134,7 @@ ProfileInfoLoader::ProfileInfoLoader(const char *ToolName, exit(1); } } - + fclose(F); } @@ -151,7 +151,7 @@ void ProfileInfoLoader::getFunctionCounts(std::vector<std::pair<Function*, // their entry blocks were executed. std::vector<std::pair<BasicBlock*, unsigned> > BlockCounts; getBlockCounts(BlockCounts); - + for (unsigned i = 0, e = BlockCounts.size(); i != e; ++i) if (&BlockCounts[i].first->getParent()->front() == BlockCounts[i].first) Counts.push_back(std::make_pair(BlockCounts[i].first->getParent(), @@ -161,7 +161,7 @@ void ProfileInfoLoader::getFunctionCounts(std::vector<std::pair<Function*, } return; } - + unsigned Counter = 0; for (Module::iterator I = M.begin(), E = M.end(); I != E && Counter != FunctionCounts.size(); ++I) |