summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-17 23:50:32 +0000
committerChris Lattner <sabre@nondot.org>2002-09-17 23:50:32 +0000
commit5fda99744ecd82de0e8e044a5a3693808d2bc188 (patch)
treeeab9d95715f160d6e22b5492a94696253dc40e77 /lib
parentccec07a04077899a3669ba9fe6f153254d672b08 (diff)
downloadllvm-5fda99744ecd82de0e8e044a5a3693808d2bc188.tar.gz
llvm-5fda99744ecd82de0e8e044a5a3693808d2bc188.tar.bz2
llvm-5fda99744ecd82de0e8e044a5a3693808d2bc188.tar.xz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/PreSelection/PreSelection.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/PreSelection/PreSelection.cpp b/lib/CodeGen/PreSelection/PreSelection.cpp
index fcaf1a6d3d..2e55594b7c 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<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,