From 93a00e4ceb810639ec8dfb7985fad76c1ffba8c1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 7 Oct 2004 04:12:02 +0000 Subject: Rename pass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16801 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-ld/GenerateCode.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tools/llvm-ld') diff --git a/tools/llvm-ld/GenerateCode.cpp b/tools/llvm-ld/GenerateCode.cpp index 23b0057..0e714fb 100644 --- a/tools/llvm-ld/GenerateCode.cpp +++ b/tools/llvm-ld/GenerateCode.cpp @@ -161,9 +161,8 @@ int llvm::GenerateBytecode(Module *M, bool Strip, bool Internalize, addPass(Passes, createInternalizePass()); } - // Now that we internalized some globals, see if we can mark any globals as - // being constant! - addPass(Passes, createGlobalConstifierPass()); + // Now that we internalized some globals, see if we can hack on them! + addPass(Passes, createGlobalOptimizerPass()); // Linking modules together can lead to duplicated global constants, only // keep one copy of each constant... -- cgit v1.1