diff options
| author | Akira Hatanaka <ahatanak@gmail.com> | 2011-09-13 17:35:28 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanak@gmail.com> | 2011-09-13 17:35:28 +0000 |
| commit | b0e99ef8f0872ae022c709f8e05e96d34ccf396c (patch) | |
| tree | 906ac68eeee2272ed08f540b320424a79e5c1458 /llvm/lib | |
| parent | c3c60a08824db411dab0a09c6f3009275be1041f (diff) | |
| download | bcm5719-llvm-b0e99ef8f0872ae022c709f8e05e96d34ccf396c.tar.gz bcm5719-llvm-b0e99ef8f0872ae022c709f8e05e96d34ccf396c.zip | |
It is not necessary to search for mipsallegrex in target triple string.
llvm-svn: 139607
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp index 7ea7498bcb2..4d120466d6a 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp @@ -66,8 +66,7 @@ static MCCodeGenInfo *createMipsMCCodeGenInfo(StringRef TT, Reloc::Model RM, MCCodeGenInfo *X = new MCCodeGenInfo(); if (RM == Reloc::Default) { // Abicall enables PIC by default - if (TT.find("mipsallegrex") != std::string::npos || - TT.find("psp") != std::string::npos) + if (TT.find("psp") != std::string::npos) RM = Reloc::Static; else RM = Reloc::PIC_; |

