diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-17 23:50:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-17 23:50:32 +0000 |
commit | 5fda99744ecd82de0e8e044a5a3693808d2bc188 (patch) | |
tree | eab9d95715f160d6e22b5492a94696253dc40e77 /lib/CodeGen | |
parent | ccec07a04077899a3669ba9fe6f153254d672b08 (diff) | |
download | external_llvm-5fda99744ecd82de0e8e044a5a3693808d2bc188.zip external_llvm-5fda99744ecd82de0e8e044a5a3693808d2bc188.tar.gz external_llvm-5fda99744ecd82de0e8e044a5a3693808d2bc188.tar.bz2 |
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/CodeGen')
-rw-r--r-- | lib/CodeGen/PreSelection/PreSelection.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/PreSelection/PreSelection.cpp b/lib/CodeGen/PreSelection/PreSelection.cpp index fcaf1a6..2e55594 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, |