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 ce95434a8cd145fe4ab7152c7191d93e6c8cf43c..5739dbc6f9997b760089f357dd5dd6a7e50ab995 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;