namespace {
struct ConstantMerge : public Pass {
- const char *getPassName() const {return "Merge Duplicate Global Constants";}
-
// run - For this pass, process all of the globals in the module,
// eliminating duplicate constants.
//
AU.preservesCFG();
}
};
+
+RegisterPass<ConstantMerge> X("constmerge", "Merge Duplicate Global Constants");
}
Pass *createConstantMergePass() { return new ConstantMerge(); }