diff options
author | Quentin Colombet <qcolombet@apple.com> | 2013-12-17 01:19:59 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2013-12-17 01:19:59 +0000 |
commit | 382b135d92872758c094590327beb5a327455ec4 (patch) | |
tree | 918252c5d54805153282c36d25c9ea44bd5ced92 /llvm/lib/CodeGen/PrologEpilogInserter.cpp | |
parent | 3fb18bbd3443e47aa5a2038d2b0c948a23ca3216 (diff) | |
download | llvm-382b135d92872758c094590327beb5a327455ec4.zip llvm-382b135d92872758c094590327beb5a327455ec4.tar.gz llvm-382b135d92872758c094590327beb5a327455ec4.tar.bz2 |
Revert r197438 and r197447 until we figure out how to avoid circular dependency at link time
llvm-svn: 197451
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PrologEpilogInserter.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp index 556d92f..0107a9c 100644 --- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp +++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp @@ -30,11 +30,9 @@ #include "llvm/CodeGen/MachineRegisterInfo.h" #include "llvm/CodeGen/RegisterScavenging.h" #include "llvm/IR/InlineAsm.h" -#include "llvm/IR/LLVMContext.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/Debug.h" -#include "llvm/Support/DiagnosticInfo.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Target/TargetFrameLowering.h" #include "llvm/Target/TargetInstrInfo.h" @@ -162,11 +160,10 @@ bool PEI::runOnMachineFunction(MachineFunction &Fn) { // Warn on stack size when we exceeds the given limit. MachineFrameInfo *MFI = Fn.getFrameInfo(); - uint64_t StackSize = MFI->getStackSize(); - if (WarnStackSize.getNumOccurrences() > 0 && WarnStackSize < StackSize) { - DiagnosticInfoStackSize DiagStackSize(*F, StackSize); - F->getContext().diagnose(DiagStackSize); - } + if (WarnStackSize.getNumOccurrences() > 0 && + WarnStackSize < MFI->getStackSize()) + errs() << "warning: Stack size limit exceeded (" << MFI->getStackSize() + << ") in " << Fn.getName() << ".\n"; delete RS; ReturnBlocks.clear(); |