[llvm-commits] [llvm] r39761 - /llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp

Bruno Cardoso Lopes bruno.cardoso at gmail.com
Wed Jul 11 16:17:42 PDT 2007


Author: bruno
Date: Wed Jul 11 18:17:41 2007
New Revision: 39761

URL: http://llvm.org/viewvc/llvm-project?rev=39761&view=rev
Log:
Now that stack is represented the right way, LOA starts at 0

Modified:
    llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp

Modified: llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp?rev=39761&r1=39760&r2=39761&view=diff

==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp Wed Jul 11 18:17:41 2007
@@ -31,23 +31,24 @@
 }
 
 // DataLayout --> Big-endian, 32-bit pointer/ABI/alignment
-// FrameInfo  --> StackGrowsDown, 8 bytes aligned, LOA : -4 (Ra : 0)
+//
+// FrameInfo  --> StackGrowsDown, 8 bytes aligned, 
+//                LOA : 0
 MipsTargetMachine::
 MipsTargetMachine(const Module &M, const std::string &FS): 
   Subtarget(*this, M, FS), DataLayout("E-p:32:32:32"), 
-  InstrInfo(*this), FrameInfo(TargetFrameInfo::StackGrowsDown, 8, -4),
+  InstrInfo(*this), FrameInfo(TargetFrameInfo::StackGrowsDown, 8, 0),
   TLInfo(*this) {}
 
 // return 0 and must specify -march to gen MIPS code.
 unsigned MipsTargetMachine::
-getModuleMatchQuality(const Module &M) {
+getModuleMatchQuality(const Module &M) 
+{
   // We strongly match "mips-*".
   std::string TT = M.getTargetTriple();
   if (TT.size() >= 5 && std::string(TT.begin(), TT.begin()+5) == "mips-")
     return 20;
-  // If the target triple is something non-mips, we don't match.
-  if (!TT.empty()) return 0;
-
+  
   return 0;
 }
 





More information about the llvm-commits mailing list