remove rename main
authorroot <root@plrg-1.ics.uci.edu>
Sat, 7 Dec 2019 00:39:03 +0000 (16:39 -0800)
committerroot <root@plrg-1.ics.uci.edu>
Sat, 7 Dec 2019 00:39:03 +0000 (16:39 -0800)
CDSPass.cpp

index ce95434..5739dbc 100644 (file)
@@ -491,11 +491,6 @@ void CDSPass::InsertRuntimeIgnores(Function &F) {
 }*/
 
 bool CDSPass::runOnFunction(Function &F) {
-       if (F.getName() == "main") {
-               F.setName("user_main");
-               errs() << "main replaced by user_main\n";
-       }
-
        initializeCallbacks( *F.getParent() );
        SmallVector<Instruction*, 8> AllLoadsAndStores;
        SmallVector<Instruction*, 8> LocalLoadsAndStores;