Fix compilation errors with VS 2005, patch contributed by Aaron Gray.
authorMisha Brukman <brukman+llvm@gmail.com>
Thu, 17 Feb 2005 21:40:27 +0000 (21:40 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Thu, 17 Feb 2005 21:40:27 +0000 (21:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20232 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetFrameInfo.cpp

index 7a695c8594752d768587a88899134198f10a0f56..07c16634638cb899cd01132d6ec74060b0143b93 100644 (file)
@@ -24,7 +24,10 @@ using namespace llvm;
 // 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 @@ TargetFrameInfo::adjustAlignment(int unalignedOffset, bool growUp,
 // 
 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;
+}