aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
diff options
context:
space:
mode:
authorJack Carter <jcarter@mips.com>2012-07-02 20:04:43 +0000
committerJack Carter <jcarter@mips.com>2012-07-02 20:04:43 +0000
commit39ae36337f87b1530c1680ae561c952c827d6e88 (patch)
treee352d3f1b235cba607196d4dca11d5643c6dd85c /lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
parent30a507a1f5d6a5646dd3481eba6958424415c886 (diff)
downloadexternal_llvm-39ae36337f87b1530c1680ae561c952c827d6e88.zip
external_llvm-39ae36337f87b1530c1680ae561c952c827d6e88.tar.gz
external_llvm-39ae36337f87b1530c1680ae561c952c827d6e88.tar.bz2
Pass the correct ELFOSABI enumeration to the MipsELFObjectWriter constructor
Contributer: Sasa Stankovic git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp')
-rw-r--r--lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp b/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
index 684dc8f..d92c45d 100644
--- a/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
+++ b/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
@@ -78,7 +78,8 @@ public:
:MCAsmBackend(), OSType(_OSType), IsLittle(_isLittle), Is64Bit(_is64Bit) {}
MCObjectWriter *createObjectWriter(raw_ostream &OS) const {
- return createMipsELFObjectWriter(OS, OSType, IsLittle, Is64Bit);
+ return createMipsELFObjectWriter(OS,
+ MCELFObjectTargetWriter::getOSABI(OSType), IsLittle, Is64Bit);
}
/// ApplyFixup - Apply the \arg Value for given \arg Fixup into the provided