mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 17:56:53 +00:00
6da3617e7f
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. llvm-svn: 269909
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
|