diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-10-13 01:36:30 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-10-13 01:36:30 +0000 |
| commit | 229e38f0febf2c095040e3db22f9a3e37cb33bc5 (patch) | |
| tree | 6a55761aca3c95c815a51fffadebc35d922706f4 /llvm/lib/Transforms/IPO/PartialSpecialization.cpp | |
| parent | 6e27b4f530ee1047442fdabfbbcf27d3a6d015af (diff) | |
| download | bcm5719-llvm-229e38f0febf2c095040e3db22f9a3e37cb33bc5.tar.gz bcm5719-llvm-229e38f0febf2c095040e3db22f9a3e37cb33bc5.zip | |
Be more consistent in using ValueToValueMapTy.
llvm-svn: 116387
Diffstat (limited to 'llvm/lib/Transforms/IPO/PartialSpecialization.cpp')
| -rw-r--r-- | llvm/lib/Transforms/IPO/PartialSpecialization.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/PartialSpecialization.cpp b/llvm/lib/Transforms/IPO/PartialSpecialization.cpp index 037189e949a..d3222ba59f2 100644 --- a/llvm/lib/Transforms/IPO/PartialSpecialization.cpp +++ b/llvm/lib/Transforms/IPO/PartialSpecialization.cpp @@ -60,10 +60,10 @@ INITIALIZE_PASS(PartSpec, "partialspecialization", // a call to the specialized function. Returns the specialized function static Function* SpecializeFunction(Function* F, - ValueMap<const Value*, Value*>& replacements) { + ValueToValueMapTy& replacements) { // arg numbers of deleted arguments DenseMap<unsigned, const Argument*> deleted; - for (ValueMap<const Value*, Value*>::iterator + for (ValueToValueMapTy::iterator repb = replacements.begin(), repe = replacements.end(); repb != repe; ++repb) { Argument const *arg = cast<const Argument>(repb->first); @@ -164,7 +164,7 @@ bool PartSpec::runOnModule(Module &M) { // leave the original function dead and removable. if (cost.isAlways() || (cost.isVariable() && cost.getValue() < bonus)) { - ValueMap<const Value*, Value*> m; + ValueToValueMapTy m; Function::arg_iterator arg = F.arg_begin(); for (int y = 0; y < interestingArgs[x]; ++y) ++arg; |

