summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-02-21 08:32:22 +0000
committerEric Christopher <echristo@gmail.com>2015-02-21 08:32:22 +0000
commitbb40164e48b7801a1778b608c02dfc6f8cba83c8 (patch)
treea01d6d65828475da0a41470a2649773a65e31137 /llvm/lib
parent1bffef3b29a04d98d58f9f175c8ade282a02dd21 (diff)
downloadbcm5719-llvm-bb40164e48b7801a1778b608c02dfc6f8cba83c8.tar.gz
bcm5719-llvm-bb40164e48b7801a1778b608c02dfc6f8cba83c8.zip
Endianness can be gotten from the DataLayout which we already
have. Also, the subtarget is invalid at this point. llvm-svn: 230131
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Mips/MipsAsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp
index 30350a93e3a..aeee5e587e5 100644
--- a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp
+++ b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp
@@ -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
//
OpenPOWER on IntegriCloud