From: Bruno Cardoso Lopes Date: Wed, 11 Jul 2007 23:17:41 +0000 (+0000) Subject: Now that stack is represented the right way, LOA starts at 0 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=758dcca57ae4aad057b39e8c14af996aef30bd3e;p=oota-llvm.git Now that stack is represented the right way, LOA starts at 0 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39761 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Mips/MipsTargetMachine.cpp b/lib/Target/Mips/MipsTargetMachine.cpp index a85833ebc0c..7fdba30bd21 100644 --- a/lib/Target/Mips/MipsTargetMachine.cpp +++ b/lib/Target/Mips/MipsTargetMachine.cpp @@ -31,23 +31,24 @@ createTargetAsmInfo() const } // 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; }