summaryrefslogtreecommitdiffstats
path: root/clang/test/Misc/backend-stack-frame-diagnostics-fallback.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Ensure there is stack usage in stack size warning testMatt Arsenault2019-05-031-1/+3
| | | | | | | r359906 broke this because the only stack usage was from a spill which can be avoided since the only block is a return. llvm-svn: 359918
* Implement -Wframe-larger-than backend diagnosticAlp Toker2014-06-051-0/+18
Add driver and frontend support for the GCC -Wframe-larger-than=bytes warning. This is the first GCC-compatible backend diagnostic built around LLVM's reporting feature. This commit adds infrastructure to perform reverse lookup from mangled names emitted after LLVM IR generation. We use that to resolve precise locations and originating AST functions, lambdas or block declarations to produce seamless codegen-guided diagnostics. An associated change, StringMap now maintains unique mangled name strings instead of allocating copies. This is a net memory saving in C++ and a small hit for C where we no longer reuse IdentifierInfo storage, pending further optimisation. llvm-svn: 210293
OpenPOWER on IntegriCloud