mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 03:32:10 +00:00
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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230655 91177308-0d34-0410-b5e6-96231b3b80d8
9 lines
395 B
LLVM
9 lines
395 B
LLVM
; 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
|