aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2018-11-01 18:04:49 +0000
committerTim Northover <tnorthover@apple.com>2018-11-01 18:04:49 +0000
commitc1ac697ab788f8572898c2c1837bfe783d8409ef (patch)
tree6becedc6dcc407eeffc950f8e104aa0915980d14 /clang/lib/Frontend/CompilerInvocation.cpp
parentfe3bc1b9bf7603fcd4984b7e6c721f95171a56f8 (diff)
downloadllvm-c1ac697ab788f8572898c2c1837bfe783d8409ef.zip
llvm-c1ac697ab788f8572898c2c1837bfe783d8409ef.tar.gz
llvm-c1ac697ab788f8572898c2c1837bfe783d8409ef.tar.bz2
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 helpers from libclangAnalysis to libclangAST to avoid a circular dependency. llvm-svn: 345866
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions