aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,