[llvm-commits] CVS: llvm/lib/CodeGen/PreSelection/PreSelection.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 17 18:51:00 PDT 2002


Changes in directory llvm/lib/CodeGen/PreSelection:

PreSelection.cpp updated: 1.1 -> 1.2

---
Log message:

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


---
Diffs of the changes:

Index: llvm/lib/CodeGen/PreSelection/PreSelection.cpp
diff -u llvm/lib/CodeGen/PreSelection/PreSelection.cpp:1.1 llvm/lib/CodeGen/PreSelection/PreSelection.cpp:1.2
--- llvm/lib/CodeGen/PreSelection/PreSelection.cpp:1.1	Mon Sep 16 10:31:13 2002
+++ llvm/lib/CodeGen/PreSelection/PreSelection.cpp	Tue Sep 17 18:50:32 2002
@@ -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 @@
 
 // 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,





More information about the llvm-commits mailing list