[llvm] r230131 - Endianness can be gotten from the DataLayout which we already
Eric Christopher
echristo at gmail.com
Sat Feb 21 00:32:23 PST 2015
Author: echristo
Date: Sat Feb 21 02:32:22 2015
New Revision: 230131
URL: http://llvm.org/viewvc/llvm-project?rev=230131&view=rev
Log:
Endianness can be gotten from the DataLayout which we already
have. Also, the subtarget is invalid at this point.
Modified:
llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp?rev=230131&r1=230130&r2=230131&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp Sat Feb 21 02:32:22 2015
@@ -888,7 +888,7 @@ void MipsAsmPrinter::EmitFPCallStub(
const char *Symbol, const Mips16HardFloatInfo::FuncSignature *Signature) {
MCSymbol *MSymbol = OutContext.GetOrCreateSymbol(StringRef(Symbol));
using namespace Mips16HardFloatInfo;
- bool LE = Subtarget->isLittle();
+ bool LE = getDataLayout().isLittleEndian();
//
// .global xxxx
//
More information about the llvm-commits
mailing list