aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-ld
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-07 04:12:02 +0000
committerChris Lattner <sabre@nondot.org>2004-10-07 04:12:02 +0000
commit93a00e4ceb810639ec8dfb7985fad76c1ffba8c1 (patch)
treeda81b3a0d077b3805b07588f3828580cd1e0e906 /tools/llvm-ld
parent8ecaccebf1c992c8e606c1349d0e0478e2e5dc8e (diff)
downloadexternal_llvm-93a00e4ceb810639ec8dfb7985fad76c1ffba8c1.zip
external_llvm-93a00e4ceb810639ec8dfb7985fad76c1ffba8c1.tar.gz
external_llvm-93a00e4ceb810639ec8dfb7985fad76c1ffba8c1.tar.bz2
Rename pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ld')
-rw-r--r--tools/llvm-ld/GenerateCode.cpp5
1 files changed, 2 insertions, 3 deletions
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...