Mercurial > hg > CbC > CbC_llvm
diff lib/Transforms/IPO/ExtractGV.cpp @ 83:60c9769439b8 LLVM3.7
LLVM 3.7
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 18 Feb 2015 14:55:36 +0900 |
parents | 54457678186b |
children | afa8332a0e37 |
line wrap: on
line diff
--- a/lib/Transforms/IPO/ExtractGV.cpp Mon Sep 08 22:07:30 2014 +0900 +++ b/lib/Transforms/IPO/ExtractGV.cpp Wed Feb 18 14:55:36 2015 +0900 @@ -91,7 +91,7 @@ continue; } - makeVisible(*I, Delete); + makeVisible(*I, Delete); if (Delete) I->setInitializer(nullptr); @@ -106,7 +106,7 @@ continue; } - makeVisible(*I, Delete); + makeVisible(*I, Delete); if (Delete) I->deleteBody(); @@ -118,8 +118,8 @@ Module::alias_iterator CurI = I; ++I; - bool Delete = deleteStuff == (bool)Named.count(CurI); - makeVisible(*CurI, Delete); + bool Delete = deleteStuff == (bool)Named.count(CurI); + makeVisible(*CurI, Delete); if (Delete) { Type *Ty = CurI->getType()->getElementType(); @@ -148,7 +148,7 @@ char GVExtractorPass::ID = 0; } -ModulePass *llvm::createGVExtractionPass(std::vector<GlobalValue*>& GVs, +ModulePass *llvm::createGVExtractionPass(std::vector<GlobalValue *> &GVs, bool deleteFn) { return new GVExtractorPass(GVs, deleteFn); }