From 86e6e0f6e37950f718fa64e43460d4a5b337a908 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 17 Sep 2002 23:50:32 +0000 Subject: [PATCH] Don't put default parameter values into .cpp files, it breaks 3.x compilers llvm-svn: 3799 --- lib/CodeGen/PreSelection/PreSelection.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/CodeGen/PreSelection/PreSelection.cpp b/lib/CodeGen/PreSelection/PreSelection.cpp index fcaf1a6d3dc..2e55594b7c1 100644 --- a/lib/CodeGen/PreSelection/PreSelection.cpp +++ b/lib/CodeGen/PreSelection/PreSelection.cpp @@ -14,9 +14,7 @@ #include "llvm/Transforms/Scalar.h" #include "llvm/Support/InstVisitor.h" #include "llvm/Module.h" -#include "llvm/Function.h" #include "llvm/Constants.h" -#include "llvm/GlobalVariable.h" #include "llvm/iMemory.h" #include "llvm/iPHINode.h" #include "llvm/iOther.h" @@ -165,7 +163,7 @@ static RegisterOpt X("preselect", // PreSelection::getGlobalAddr: Put address of a global into a v. register. GetElementPtrInst* -PreSelection::getGlobalAddr(Value* ptr, Instruction* insertBefore = 0) +PreSelection::getGlobalAddr(Value* ptr, Instruction* insertBefore) { return (isa(ptr)) ? new GetElementPtrInst(ptr,