diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-02 19:08:03 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-02 19:08:03 +0000 |
| commit | 503f883b9591a2a1ba596109c6ebe633d1428f25 (patch) | |
| tree | cf7119e0d5b08f85ce1e66238816deed3fbd3599 /llvm/test | |
| parent | d8cacd2e9727439ab83844e4bdcca59eaed4074c (diff) | |
| download | bcm5719-llvm-503f883b9591a2a1ba596109c6ebe633d1428f25.tar.gz bcm5719-llvm-503f883b9591a2a1ba596109c6ebe633d1428f25.zip | |
Add r230655 back with a fix.
The issue is that now we have a diag handler during optimizations
and get forward every optimization remark, flooding stdout.
The same filtering should probably be done with or without a
custom handler, but for now just ignore remarks.
Original message:
gold-plugin: "Upgrade" debug info and handle its warnings.
The gold plugin never calls MaterializeModule, so any old debug info
was not deleted and could cause crashes.
Now that it is being "upgraded", the plugin also has to handle warnings
and create Modules with a nice id (it shows in the warning).
llvm-svn: 230991
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/tools/gold/Inputs/drop-debug.bc | bin | 0 -> 1152 bytes | |||
| -rw-r--r-- | llvm/test/tools/gold/drop-debug.ll | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/tools/gold/Inputs/drop-debug.bc b/llvm/test/tools/gold/Inputs/drop-debug.bc Binary files differnew file mode 100644 index 00000000000..f9c471f8e0d --- /dev/null +++ b/llvm/test/tools/gold/Inputs/drop-debug.bc diff --git a/llvm/test/tools/gold/drop-debug.ll b/llvm/test/tools/gold/drop-debug.ll new file mode 100644 index 00000000000..b8c4d8c62a9 --- /dev/null +++ b/llvm/test/tools/gold/drop-debug.ll @@ -0,0 +1,8 @@ +; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \ +; RUN: --plugin-opt=emit-llvm -shared %p/Inputs/drop-debug.bc \ +; RUN: -o t2.bc 2>&1 | FileCheck %s + +; drop-debug.bc was created from "void f(void) {}" with clang 3.5 and +; -gline-tables-only, so it contains old debug info. + +; CHECK: warning: LLVM gold plugin: ignoring debug info with an invalid version (1) in {{.*}}/Inputs/drop-debug.bc |

