mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-10 06:00:30 +00:00
2dc637165b
MC only needs to know if the output is PIC or not. It never has to decide about creating GOTs and PLTs for example. The only thing that MC itself uses this information for is expanding "macros" in sparc and mips. The rest I am pretty sure could be moved to CodeGen. This is a cleanup and isolates the code from future changes to Reloc::Model. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269909 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
228 B
ArmAsm
11 lines
228 B
ArmAsm
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 --position-independent 2>%t1
|
|
# RUN: FileCheck %s < %t1
|
|
|
|
.text
|
|
.set noreorder
|
|
.cpload $25
|
|
.set reorder
|
|
|
|
jal $25
|
|
# CHECK: :[[@LINE-1]]:3: warning: no .cprestore used in PIC mode
|