[llvm-commits] CVS: llvm/lib/Target/CBackend/CBackend.cpp
Reid Spencer
reid at x10sys.com
Thu Apr 12 14:57:32 PDT 2007
Changes in directory llvm/lib/Target/CBackend:
CBackend.cpp updated: 1.335 -> 1.336
---
Log message:
Implement review feedback .. don't double search a set.
---
Diffs of the changes: (+1 -3)
CBackend.cpp | 4 +---
1 files changed, 1 insertion(+), 3 deletions(-)
Index: llvm/lib/Target/CBackend/CBackend.cpp
diff -u llvm/lib/Target/CBackend/CBackend.cpp:1.335 llvm/lib/Target/CBackend/CBackend.cpp:1.336
--- llvm/lib/Target/CBackend/CBackend.cpp:1.335 Thu Apr 12 16:00:45 2007
+++ llvm/lib/Target/CBackend/CBackend.cpp Thu Apr 12 16:57:15 2007
@@ -45,7 +45,6 @@
#include "llvm/Config/config.h"
#include <algorithm>
#include <sstream>
-// #include <set>
using namespace llvm;
namespace {
@@ -2430,11 +2429,10 @@
std::vector<Function*>::iterator I = prototypesToGen.begin();
std::vector<Function*>::iterator E = prototypesToGen.end();
for ( ; I != E; ++I) {
- if (intrinsicPrototypesAlreadyGenerated.count(*I) == 0) {
+ if (intrinsicPrototypesAlreadyGenerated.insert(*I).second) {
Out << '\n';
printFunctionSignature(*I, true);
Out << ";\n";
- intrinsicPrototypesAlreadyGenerated.insert(*I);
}
}
}
More information about the llvm-commits
mailing list