diff options
| author | David Blaikie <dblaikie@gmail.com> | 2019-06-08 00:01:21 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2019-06-08 00:01:21 +0000 |
| commit | 8472fa6c54c9d044adcd147f6826bccebd730f30 (patch) | |
| tree | 8c4cfc3fce80800e61baa5c55fd5c473594be77b /clang/test/Sema/attr-nodebug.c | |
| parent | 6f48c076207f49dde437d85dbd5e1bcdd580f973 (diff) | |
| download | bcm5719-llvm-8472fa6c54c9d044adcd147f6826bccebd730f30.tar.gz bcm5719-llvm-8472fa6c54c9d044adcd147f6826bccebd730f30.zip | |
DebugInfo: Add support for 'nodebug' attribute on typedefs and alias templates
Seems like a logical extension to me - and of interest because it might
help reduce the debug info size of libc++ by applying this attribute to
type traits that have a disproportionate debug info cost compared to the
benefit (& possibly harm/confusion) they cause users.
llvm-svn: 362856
Diffstat (limited to 'clang/test/Sema/attr-nodebug.c')
| -rw-r--r-- | clang/test/Sema/attr-nodebug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/attr-nodebug.c b/clang/test/Sema/attr-nodebug.c index 355778411d3..3ae894a8d0a 100644 --- a/clang/test/Sema/attr-nodebug.c +++ b/clang/test/Sema/attr-nodebug.c @@ -2,7 +2,7 @@ int a __attribute__((nodebug)); -void b(int p __attribute__((nodebug))) { // expected-warning {{'nodebug' attribute only applies to functions, function pointers, Objective-C methods, and variables}} +void b(int p __attribute__((nodebug))) { // expected-warning {{'nodebug' attribute only applies to typedefs, functions, function pointers, Objective-C methods, and variables}} int b __attribute__((nodebug)); } |

