diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2009-08-03 02:22:28 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2009-08-03 02:22:28 +0000 |
| commit | 532ba1ee5d8cddcc4bcc5bca47544472245cbb30 (patch) | |
| tree | 1d2bc6a9d597d16cbeaa8bf528c578dd9f9b2c80 /lib/Target/Mips/MipsTargetAsmInfo.cpp | |
| parent | 3bbe7de834add1aca5bf69d5e5c9a2f9dbae00c5 (diff) | |
| download | external_llvm-532ba1ee5d8cddcc4bcc5bca47544472245cbb30.zip external_llvm-532ba1ee5d8cddcc4bcc5bca47544472245cbb30.tar.gz external_llvm-532ba1ee5d8cddcc4bcc5bca47544472245cbb30.tar.bz2 | |
Remove -disable-mips-abicall and -enable-mips-absolute-call command-line
options, which don't appear to be useful. -enable-mips-absolute-call is
completely unused (and unless I'm mistaken, is supposed to have the
same effect that -relocation-model=dynamic-no-pic should have),
and -disable-mips-abicall appears to be effectively a
synonym for -relocation-model=static. Adjust the few users of hasABICall
to checks which seem more appropriate. Update MipsSubtarget,
MipsTargetMachine, and MipselTargetMachine to synchronize with recent
changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77938 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsTargetAsmInfo.cpp')
| -rw-r--r-- | lib/Target/Mips/MipsTargetAsmInfo.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/Mips/MipsTargetAsmInfo.cpp b/lib/Target/Mips/MipsTargetAsmInfo.cpp index 96bb8a1..aa40ff6 100644 --- a/lib/Target/Mips/MipsTargetAsmInfo.cpp +++ b/lib/Target/Mips/MipsTargetAsmInfo.cpp @@ -25,8 +25,6 @@ MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM) { CommentString = "#"; ZeroDirective = "\t.space\t"; - if (!TM.getSubtarget<MipsSubtarget>().hasABICall()) - JumpTableDirective = "\t.word\t"; - else + if (TM.getRelocationModel() == Reloc::PIC_) JumpTableDirective = "\t.gpword\t"; } |
