aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-19 17:03:51 +0000
committerChris Lattner <sabre@nondot.org>2003-06-19 17:03:51 +0000
commitdccb6d017bfc88eff013e08e6b28d90b357996b5 (patch)
treec587ddf66693a6a33844c4d9accad2f3aa7b0cff /tools
parent936f771e254cd3212a19f44a7868e1dd2ebf3d4e (diff)
downloadexternal_llvm-dccb6d017bfc88eff013e08e6b28d90b357996b5.zip
external_llvm-dccb6d017bfc88eff013e08e6b28d90b357996b5.tar.gz
external_llvm-dccb6d017bfc88eff013e08e6b28d90b357996b5.tar.bz2
Funcresolve no longer performs nicification of resolved functions
instcombine does this git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gccld/gccld.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/gccld/gccld.cpp b/tools/gccld/gccld.cpp
index f04817f..eadb5f4 100644
--- a/tools/gccld/gccld.cpp
+++ b/tools/gccld/gccld.cpp
@@ -404,6 +404,11 @@ int main(int argc, char **argv) {
//
Passes.add(createGlobalDCEPass());
+ // The FuncResolve pass may leave cruft around if functions were prototyped
+ // differently than they were defined. Remove this cruft.
+ //
+ Passes.add(createInstructionCombiningPass());
+
// Add the pass that writes bytecode to the output file...
std::string RealBytecodeOutput = OutputFilename;
if (!LinkAsLibrary) RealBytecodeOutput += ".bc";