Reapply r183552. This time, use a standard type for the option to avoid template
instantiation issue with non-standard type. Add a backend option to warn on a given stack size limit. Option: -mllvm -warn-stack-size=<limit> Output (if limit is exceeded): warning: Stack size limit exceeded (<actual size>) in <functionName>. The longer term plan is to hook that to a clang warning. PR:4072 <rdar://problem/13987214>. llvm-svn: 183595
Showing
- llvm/lib/CodeGen/PrologEpilogInserter.cpp 13 additions, 0 deletionsllvm/lib/CodeGen/PrologEpilogInserter.cpp
- llvm/test/CodeGen/ARM/warn-stack.ll 24 additions, 0 deletionsllvm/test/CodeGen/ARM/warn-stack.ll
- llvm/test/CodeGen/X86/warn-stack.ll 24 additions, 0 deletionsllvm/test/CodeGen/X86/warn-stack.ll
Loading
Please register or sign in to comment