diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-07-15 02:09:41 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-07-15 02:09:41 +0000 |
commit | a83b37a9db2880091f4f8e7683c30ca142678fff (patch) | |
tree | 6b1a24b3947cec4bb8af1f6c0f37983211cfa712 /llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp | |
parent | 9b8605f78795f83b4e65a5a763772984d122702a (diff) | |
download | bcm5719-llvm-a83b37a9db2880091f4f8e7683c30ca142678fff.tar.gz bcm5719-llvm-a83b37a9db2880091f4f8e7683c30ca142678fff.zip |
Move some parts of TargetAsmInfo down to MCAsmInfo. This is not the greatest
solution but it is a small step towards removing the horror that is
TargetAsmInfo.
llvm-svn: 135237
Diffstat (limited to 'llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp index 1893b3bf05e..5d9242500f6 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp @@ -12,9 +12,15 @@ //===----------------------------------------------------------------------===// #include "MipsMCAsmInfo.h" +#include "llvm/ADT/Triple.h" + using namespace llvm; MipsMCAsmInfo::MipsMCAsmInfo(const Target &T, StringRef TT) { + Triple TheTriple(TT); + if (TheTriple.getArch() == Triple::mips) + IsLittleEndian = false; + AlignmentIsInBytes = false; Data16bitsDirective = "\t.2byte\t"; Data32bitsDirective = "\t.4byte\t"; |