[llvm-commits] CVS: llvm/lib/Target/TargetFrameInfo.cpp

Misha Brukman brukman at cs.uiuc.edu
Thu Feb 17 13:40:37 PST 2005



Changes in directory llvm/lib/Target:

TargetFrameInfo.cpp updated: 1.3 -> 1.4
---
Log message:

Fix compilation errors with VS 2005, patch contributed by Aaron Gray.


---
Diffs of the changes:  (+28 -8)

 TargetFrameInfo.cpp |   36 ++++++++++++++++++++++++++++--------
 1 files changed, 28 insertions(+), 8 deletions(-)


Index: llvm/lib/Target/TargetFrameInfo.cpp
diff -u llvm/lib/Target/TargetFrameInfo.cpp:1.3 llvm/lib/Target/TargetFrameInfo.cpp:1.4
--- llvm/lib/Target/TargetFrameInfo.cpp:1.3	Thu Aug 12 13:37:04 2004
+++ llvm/lib/Target/TargetFrameInfo.cpp	Thu Feb 17 15:40:27 2005
@@ -24,7 +24,10 @@
 // This method adjusts a stack offset to meet alignment rules of target.
 int 
 TargetFrameInfo::adjustAlignment(int unalignedOffset, bool growUp,
-                                 unsigned align) const { abort(); }
+                                 unsigned align) const {
+  abort();
+  return 0;
+}
 
 // These methods compute offsets using the frame contents for a particular
 // function.  The frame contents are obtained from the MachineFunction object
@@ -33,25 +36,42 @@
 // 
 int
 TargetFrameInfo::getIncomingArgOffset(MachineFunction& mcInfo, unsigned argNum)
-  const{ abort(); }
+  const {
+  abort();
+  return 0;
+}
 
 int
 TargetFrameInfo::getOutgoingArgOffset(MachineFunction& mcInfo,
-                                      unsigned argNum) const { abort(); }
+                                      unsigned argNum) const {
+  abort();
+  return 0;
+}
 
 int
 TargetFrameInfo::getFirstAutomaticVarOffset(MachineFunction& mcInfo,
-                                            bool& growUp) const { abort(); }
+                                            bool& growUp) const {
+  abort();
+  return 0;
+}
 
 int 
 TargetFrameInfo::getRegSpillAreaOffset(MachineFunction& mcInfo, bool& growUp)
-  const { abort(); }
+  const {
+  abort();
+  return 0;
+}
 
 int
-TargetFrameInfo::getTmpAreaOffset(MachineFunction& mcInfo, bool& growUp) const
-{ abort(); }
+TargetFrameInfo::getTmpAreaOffset(MachineFunction& mcInfo, bool& growUp) const {
+  abort();
+  return 0;
+}
 
 int 
 TargetFrameInfo::getDynamicAreaOffset(MachineFunction& mcInfo, bool& growUp)
-  const { abort(); }
+  const {
+  abort();
+  return 0;
+}
 






More information about the llvm-commits mailing list