[llvm-commits] [llvm] r70705 - /llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.cpp

Anton Korobeynikov asl at math.spbu.ru
Sun May 3 06:00:28 PDT 2009


Author: asl
Date: Sun May  3 08:00:28 2009
New Revision: 70705

URL: http://llvm.org/viewvc/llvm-project?rev=70705&view=rev
Log:
Add simple FP indicator for given function hook

Modified:
    llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.cpp

Modified: llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.cpp?rev=70705&r1=70704&r2=70705&view=diff

==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.cpp Sun May  3 08:00:28 2009
@@ -15,8 +15,10 @@
 
 #include "MSP430.h"
 #include "MSP430RegisterInfo.h"
+#include "llvm/CodeGen/MachineFrameInfo.h"
 #include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/Target/TargetMachine.h"
+#include "llvm/Target/TargetOptions.h"
 #include "llvm/ADT/BitVector.h"
 
 using namespace llvm;
@@ -54,7 +56,7 @@
 }
 
 bool MSP430RegisterInfo::hasFP(const MachineFunction &MF) const {
-  assert(0 && "Not implemented yet!");
+  return NoFramePointerElim || MF.getFrameInfo()->hasVarSizedObjects();
 }
 
 void





More information about the llvm-commits mailing list