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

Misha Brukman brukman at neo.cs.uiuc.edu
Sun Oct 27 18:28:04 PST 2002


Changes in directory llvm/lib/CodeGen/Mapping:

StackSlots.cpp updated: 1.2 -> 1.3

---
Log message:

Changed `MachineCodeForMethod' to `MachineFunction'.


---
Diffs of the changes:

Index: llvm/lib/CodeGen/Mapping/StackSlots.cpp
diff -u llvm/lib/CodeGen/Mapping/StackSlots.cpp:1.2 llvm/lib/CodeGen/Mapping/StackSlots.cpp:1.3
--- llvm/lib/CodeGen/Mapping/StackSlots.cpp:1.2	Tue Oct 22 20:12:01 2002
+++ llvm/lib/CodeGen/Mapping/StackSlots.cpp	Sun Oct 27 18:27:45 2002
@@ -13,7 +13,7 @@
 #include "llvm/Function.h"
 #include "llvm/DerivedTypes.h"
 #include "llvm/Pass.h"
-#include "llvm/CodeGen/MachineCodeForMethod.h"
+#include "llvm/CodeGen/MachineFunction.h"
 
 class StackSlots : public FunctionPass {
   const TargetMachine &Target;
@@ -32,7 +32,7 @@
     const Type *PtrInt = PointerType::get(Type::IntTy);
     unsigned Size = Target.DataLayout.getTypeSize(PtrInt);
 
-    MachineCodeForMethod &mcInfo = MachineCodeForMethod::get(&F);
+    MachineFunction &mcInfo = MachineFunction::get(&F);
     Value *V = Constant::getNullValue(Type::IntTy);
     mcInfo.allocateLocalVar(Target, V, 2*Size);
     return true;





More information about the llvm-commits mailing list