mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Correct MCJIT functionality for MIPS32 architecture.
No new tests are added. All tests in ExecutionEngine/MCJIT that have been failing pass after this patch is applied (when "make check" is done on a mips board). Patch by Petar Jovanovic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162135 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -34,7 +34,8 @@ namespace {
|
||||
|
||||
class MipsELFObjectWriter : public MCELFObjectTargetWriter {
|
||||
public:
|
||||
MipsELFObjectWriter(bool _is64Bit, uint8_t OSABI, bool _isN64);
|
||||
MipsELFObjectWriter(bool _is64Bit, uint8_t OSABI,
|
||||
bool _isN64, bool IsLittleEndian);
|
||||
|
||||
virtual ~MipsELFObjectWriter();
|
||||
|
||||
@@ -53,7 +54,7 @@ namespace {
|
||||
}
|
||||
|
||||
MipsELFObjectWriter::MipsELFObjectWriter(bool _is64Bit, uint8_t OSABI,
|
||||
bool _isN64)
|
||||
bool _isN64, bool IsLittleEndian)
|
||||
: MCELFObjectTargetWriter(_is64Bit, OSABI, ELF::EM_MIPS,
|
||||
/*HasRelocationAddend*/ false,
|
||||
/*IsN64*/ _isN64) {}
|
||||
@@ -274,6 +275,7 @@ MCObjectWriter *llvm::createMipsELFObjectWriter(raw_ostream &OS,
|
||||
bool IsLittleEndian,
|
||||
bool Is64Bit) {
|
||||
MCELFObjectTargetWriter *MOTW = new MipsELFObjectWriter(Is64Bit, OSABI,
|
||||
(Is64Bit) ? true : false);
|
||||
(Is64Bit) ? true : false,
|
||||
IsLittleEndian);
|
||||
return createELFObjectWriter(MOTW, OS, IsLittleEndian);
|
||||
}
|
||||
|
Reference in New Issue
Block a user