Endianness can be gotten from the DataLayout which we already
authorEric Christopher <echristo@gmail.com>
Sat, 21 Feb 2015 08:32:22 +0000 (08:32 +0000)
committerEric Christopher <echristo@gmail.com>
Sat, 21 Feb 2015 08:32:22 +0000 (08:32 +0000)
have. Also, the subtarget is invalid at this point.

llvm-svn: 230131

llvm/lib/Target/Mips/MipsAsmPrinter.cpp

index 30350a9..aeee5e5 100644 (file)
@@ -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
   //