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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230131 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsAsmPrinter.cpp

index 30350a93e3ab9392cdd1c799653d4c76b5040952..aeee5e587e5961f86e38c87383b5f602a050e107 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
   //