diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-31 19:32:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-31 19:32:12 +0000 |
commit | 7541b89092ed9c2e2c094e1a87cb111144601541 (patch) | |
tree | b12db7cac92ece95ee420623f96ce50649b96f04 /lib/Analysis/DataStructure/DataStructure.cpp | |
parent | 1b0a63fa6450fdf60ae79969ae55fd001cb3b5b3 (diff) |
Changes to be GCC3.1 friendly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3186 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/DataStructure.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index 7ef79211ac..84cb3e9da9 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/lib/Analysis/DataStructure/DataStructure.cpp @@ -349,9 +349,8 @@ bool DSGraph::isNodeDead(DSNode *N) { return false; } -static void -removeIdenticalCalls(std::vector<std::vector<DSNodeHandle> >& Calls, - const string& where) { +static void removeIdenticalCalls(std::vector<std::vector<DSNodeHandle> > &Calls, + const std::string &where) { // Remove trivially identical function calls unsigned NumFns = Calls.size(); std::sort(Calls.begin(), Calls.end()); @@ -359,8 +358,8 @@ removeIdenticalCalls(std::vector<std::vector<DSNodeHandle> >& Calls, Calls.end()); DEBUG(if (NumFns != Calls.size()) - std::cerr << "Merged " << (NumFns-Calls.size()) - << " call nodes in " << where << "\n";); + std::cerr << "Merged " << (NumFns-Calls.size()) + << " call nodes in " << where << "\n";); } // removeTriviallyDeadNodes - After the graph has been constructed, this method @@ -727,7 +726,7 @@ void GlobalDSGraph::cloneCalls(DSGraph& Graph) { } // remove trivially identical function calls - removeIdenticalCalls(FunctionCalls, string("Globals Graph")); + removeIdenticalCalls(FunctionCalls, "Globals Graph"); } @@ -759,3 +758,4 @@ bool LocalDataStructures::run(Module &M) { return false; } + |