diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2007-07-11 23:17:41 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2007-07-11 23:17:41 +0000 |
commit | 758dcca57ae4aad057b39e8c14af996aef30bd3e (patch) | |
tree | b1517965924b63c1bffeeb2c9ea10ad9e6f9e169 /lib | |
parent | 2ab22d1b9313dea627162309fb434b990d4dd6d6 (diff) | |
download | external_llvm-758dcca57ae4aad057b39e8c14af996aef30bd3e.zip external_llvm-758dcca57ae4aad057b39e8c14af996aef30bd3e.tar.gz external_llvm-758dcca57ae4aad057b39e8c14af996aef30bd3e.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/Mips/MipsTargetMachine.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/Target/Mips/MipsTargetMachine.cpp b/lib/Target/Mips/MipsTargetMachine.cpp index a85833e..7fdba30 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; } |