diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-08-04 23:08:57 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-08-04 23:08:57 +0000 |
commit | b44230213101a3de3f9077e63de9fcf2d849c765 (patch) | |
tree | c3b6649b7244d03374e37673ddc2f4e98f0a81b1 /clang/test/CodeGen/debug-info-lto.c | |
parent | 138a3fbae1ca90dc6d2760e859a08c99a6f4ab3d (diff) | |
download | bcm5719-llvm-b44230213101a3de3f9077e63de9fcf2d849c765.tar.gz bcm5719-llvm-b44230213101a3de3f9077e63de9fcf2d849c765.zip |
Debug Info: Set the DICompileUnit's isOptimized flag when compiling with LTO.
rdar://problem/27640939
llvm-svn: 310147
Diffstat (limited to 'clang/test/CodeGen/debug-info-lto.c')
-rw-r--r-- | clang/test/CodeGen/debug-info-lto.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGen/debug-info-lto.c b/clang/test/CodeGen/debug-info-lto.c new file mode 100644 index 00000000000..5dab0a12641 --- /dev/null +++ b/clang/test/CodeGen/debug-info-lto.c @@ -0,0 +1,4 @@ +// RUN: %clang_cc1 -flto -emit-llvm -debug-info-kind=standalone %s -o - | FileCheck %s +// RUN: %clang_cc1 -flto=thin -emit-llvm -debug-info-kind=standalone %s -o - | FileCheck %s +// The "o" in LTO stands for optimization! +// CHECK: !DICompileUnit({{.*}} isOptimized: true |