diff options
author | Tim Northover <tnorthover@apple.com> | 2018-11-02 13:14:11 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2018-11-02 13:14:11 +0000 |
commit | 314fbfa1c4c6665c54a220eefb10a6f23010a352 (patch) | |
tree | e7249debf2e3c4d030fd1be7460a7f72a30a1c19 /clang/lib/AST/InheritViz.cpp | |
parent | c55d09a00e8067f27de2bb88c12a2bee64a2192a (diff) | |
download | bcm5719-llvm-314fbfa1c4c6665c54a220eefb10a6f23010a352.tar.gz bcm5719-llvm-314fbfa1c4c6665c54a220eefb10a6f23010a352.zip |
Reapply Logging: make os_log buffer size an integer constant expression.
The size of an os_log buffer is known at any stage of compilation, so making it
a constant expression means that the common idiom of declaring a buffer for it
won't result in a VLA. That allows the compiler to skip saving and restoring
the stack pointer around such buffers.
This also moves the OSLog and other FormatString helpers from
libclangAnalysis to libclangAST to avoid a circular dependency.
llvm-svn: 345971
Diffstat (limited to 'clang/lib/AST/InheritViz.cpp')
0 files changed, 0 insertions, 0 deletions