1. fix null program output after some other changes
2. re-enable null.ll test
3. fix some minor style violations
Patch by Reed Kotler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158935 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/Mips/MipsFrameLowering.cpp b/lib/Target/Mips/MipsFrameLowering.cpp
index f7baca9..15ab1c3 100644
--- a/lib/Target/Mips/MipsFrameLowering.cpp
+++ b/lib/Target/Mips/MipsFrameLowering.cpp
@@ -112,7 +112,8 @@
// First, compute final stack size.
unsigned StackAlign = getStackAlignment();
- uint64_t StackSize = MFI->getObjectOffset(MipsFI->getGlobalRegFI()) +
+ uint64_t StackSize = STI.inMips16Mode()? 0:
+ MFI->getObjectOffset(MipsFI->getGlobalRegFI()) +
StackAlign + RoundUpToAlignment(MFI->getStackSize(), StackAlign);
// Update stack size