[llvm-commits] CVS: llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/wordfreq.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 6 20:11:01 PDT 2003
Changes in directory llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++:
wordfreq.cpp updated: 1.1 -> 1.2
---
Log message:
switch testcase to use map instead of hash_map
---
Diffs of the changes: (+4 -4)
Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/wordfreq.cpp
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/wordfreq.cpp:1.1 llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/wordfreq.cpp:1.2
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/wordfreq.cpp:1.1 Mon Oct 6 20:09:09 2003
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/wordfreq.cpp Mon Oct 6 20:10:06 2003
@@ -1,14 +1,14 @@
// -*- mode: c++ -*-
-// $Id: wordfreq.cpp,v 1.1 2003/10/07 01:09:09 lattner Exp $
+// $Id: wordfreq.cpp,v 1.2 2003/10/07 01:10:06 lattner Exp $
// http://www.bagley.org/~doug/shootout/
// By Tamás Benkõ
#include <cstdio>
#include <cctype>
#include <cstring>
-#include <ext/hash_map>
#include <vector>
#include <algorithm>
+#include <map>
using namespace std;
@@ -58,7 +58,7 @@
return len;
}
-typedef hash_map<char const *, int> counter;
+typedef map<char const *, int> counter;
typedef pair<char const *, int> hpair;
namespace std
More information about the llvm-commits
mailing list