
This patch adds support for common and local symbols in the TOC for AIX. Note that we need to update isVirtualSection so as a common symbol in TOC will have the symbol type XTY_CM and will be initialized when placed in the TOC so sections with this type are no longer virtual. --------- Co-authored-by: Zaara Syeda <syzaara@ca.ibm.com>
16 lines
500 B
LLVM
16 lines
500 B
LLVM
; RUN: not --crash llc -mtriple powerpc-ibm-aix-xcoff -verify-machineinstrs \
|
|
; RUN: < %s 2>&1 | FileCheck %s
|
|
; RUN: not --crash llc -mtriple powerpc64-ibm-aix-xcoff -verify-machineinstrs \
|
|
; RUN: < %s 2>&1 | FileCheck %s
|
|
|
|
@iprivate = private global i32 55 #0
|
|
|
|
define nonnull ptr @get() local_unnamed_addr {
|
|
entry:
|
|
ret ptr @iprivate
|
|
}
|
|
|
|
attributes #0 = { "toc-data" }
|
|
|
|
; CHECK: LLVM ERROR: A GlobalVariable with private linkage is not currently supported by the toc data transformation.
|