Don't put default parameter values into .cpp files, it breaks 3.x compilers

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-09-17 23:50:32 +00:00
parent ccec07a040
commit 5fda99744e

View 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,