Disallow this meaningless combination. Doing so simplifies analysis of LLVM code w.r.t t DLL storage-class, and prevents mistakes with DLL storage class. - Change the assembler to reject DLL storage class on symbols with local linkage. - Change the bitcode reader to clear the DLL Storage class when the linkage is local for auto-upgrading - Update LangRef. There is an existing restriction on non-default visibility and local linkage which this is modelled on. Differential Review: https://reviews.llvm.org/D134784
9 lines
347 B
LLVM
9 lines
347 B
LLVM
; RUN: opt -S -passes=globalopt < %s | FileCheck %s
|
|
|
|
@_Z17in_custom_section = internal global i8 42, section "CUSTOM"
|
|
@in_custom_section = internal alias i8, i8* @_Z17in_custom_section
|
|
|
|
; CHECK: @in_custom_section = internal global i8 42, section "CUSTOM"
|
|
|
|
@llvm.used = appending global [1 x i8*] [i8* @in_custom_section], section "llvm.metadata"
|