Add a new pass
authorChris Lattner <sabre@nondot.org>
Wed, 25 Feb 2004 21:35:02 +0000 (21:35 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 25 Feb 2004 21:35:02 +0000 (21:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11838 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gccas/gccas.cpp

index 7b5018a5198ee148172947a3918da5e715d9e112..e04b2b5646a42fcdce08b4bbc4a086f090dd8d73 100644 (file)
@@ -68,6 +68,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
   addPass(PM, createRaiseAllocationsPass());     // call %malloc -> malloc inst
   addPass(PM, createCFGSimplificationPass());    // Clean up disgusting code
   addPass(PM, createPromoteMemoryToRegister());  // Kill useless allocas
+  addPass(PM, createGlobalConstifierPass());     // Mark read-only globals const
   addPass(PM, createGlobalDCEPass());            // Remove unused globals
   addPass(PM, createIPConstantPropagationPass());// IP Constant Propagation
   addPass(PM, createDeadArgEliminationPass());   // Dead argument elimination