summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Sparc
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-05-18 11:58:50 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-05-18 11:58:50 +0000
commit699281cce7adec546a52d986928513f91272e723 (patch)
tree73a400a4fc089490aa3a8febf0f43a51ee77f81c /llvm/test/MC/Sparc
parenta854c0a0c3b0c295f7dcf3439e9655ad6f363f5a (diff)
downloadbcm5719-llvm-699281cce7adec546a52d986928513f91272e723.tar.gz
bcm5719-llvm-699281cce7adec546a52d986928513f91272e723.zip
Don't pass a Reloc::Model to MC.
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
Diffstat (limited to 'llvm/test/MC/Sparc')
-rw-r--r--llvm/test/MC/Sparc/sparc-pic.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/MC/Sparc/sparc-pic.s b/llvm/test/MC/Sparc/sparc-pic.s
index 1c935e0842c..f51e1e93b50 100644
--- a/llvm/test/MC/Sparc/sparc-pic.s
+++ b/llvm/test/MC/Sparc/sparc-pic.s
@@ -1,5 +1,5 @@
-! RUN: llvm-mc %s -arch=sparcv9 --relocation-model=pic -filetype=obj | llvm-readobj -r | FileCheck --check-prefix=PIC %s
-! RUN: llvm-mc %s -arch=sparcv9 --relocation-model=static -filetype=obj | llvm-readobj -r | FileCheck --check-prefix=NOPIC %s
+! RUN: llvm-mc %s -arch=sparcv9 --position-independent -filetype=obj | llvm-readobj -r | FileCheck --check-prefix=PIC %s
+! RUN: llvm-mc %s -arch=sparcv9 -filetype=obj | llvm-readobj -r | FileCheck --check-prefix=NOPIC %s
! PIC: Relocations [
OpenPOWER on IntegriCloud