diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2008-06-04 01:45:25 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2008-06-04 01:45:25 +0000 |
commit | 326a03732e055dc0b2afe93ed6b9dfad396a140f (patch) | |
tree | c700ca86fdb0cf015504a86ad1093fc7c2cd60b7 /llvm/lib/Target/Mips/MipsTargetMachine.h | |
parent | c777d9e6fe7a8ac920172289c6735cc088bcc8e9 (diff) | |
download | bcm5719-llvm-326a03732e055dc0b2afe93ed6b9dfad396a140f.tar.gz bcm5719-llvm-326a03732e055dc0b2afe93ed6b9dfad396a140f.zip |
Some Mips minor fixes
Added support for mips little endian arch => mipsel
llvm-svn: 51923
Diffstat (limited to 'llvm/lib/Target/Mips/MipsTargetMachine.h')
-rw-r--r-- | llvm/lib/Target/Mips/MipsTargetMachine.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsTargetMachine.h b/llvm/lib/Target/Mips/MipsTargetMachine.h index 8e08479f3ad..bdca77ffdec 100644 --- a/llvm/lib/Target/Mips/MipsTargetMachine.h +++ b/llvm/lib/Target/Mips/MipsTargetMachine.h @@ -33,7 +33,7 @@ namespace llvm { virtual const TargetAsmInfo *createTargetAsmInfo() const; public: - MipsTargetMachine(const Module &M, const std::string &FS); + MipsTargetMachine(const Module &M, const std::string &FS, bool isLittle); virtual const MipsInstrInfo *getInstrInfo() const { return &InstrInfo; } @@ -60,6 +60,16 @@ namespace llvm { virtual bool addAssemblyEmitter(PassManagerBase &PM, bool Fast, std::ostream &Out); }; + +/// MipselTargetMachine - Mipsel target machine. +/// +class MipselTargetMachine : public MipsTargetMachine { +public: + MipselTargetMachine(const Module &M, const std::string &FS); + + static unsigned getModuleMatchQuality(const Module &M); +}; + } // End llvm namespace #endif |