Don't put default parameter values into .cpp files, it breaks 3.x compilers
authorChris Lattner <sabre@nondot.org>
Tue, 17 Sep 2002 23:50:32 +0000 (23:50 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 17 Sep 2002 23:50:32 +0000 (23:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3799 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PreSelection/PreSelection.cpp

index fcaf1a6d3dc668bcc5d8f3b5e74ac4b209a7f726..2e55594b7c11bb06ae42212d87512586009ec8b1 100644 (file)
@@ -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<PreSelection> 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<GlobalValue>(ptr))
     ? new GetElementPtrInst(ptr,