#include "llvm/Config/config.h"
#include <algorithm>
#include <sstream>
-// #include <set>
using namespace llvm;
namespace {
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);
}
}
}