summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsJITInfo.h
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-12-05 20:51:56 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-12-05 20:51:56 +0100
commit89f5c7aa9b6400dc8533219739b5ad64e5c527f0 (patch)
tree6ee3a1199d510bbed3f2c874dce1dd74df462683 /lib/Target/Mips/MipsJITInfo.h
parentbb96d30084b6e6c680689435c9d5ee665a106ca0 (diff)
parent91309c721c7252a1e76087b965d30ffd0dc9ea29 (diff)
downloadllvm-89f5c7aa9b6400dc8533219739b5ad64e5c527f0.tar.gz
llvm-89f5c7aa9b6400dc8533219739b5ad64e5c527f0.tar.bz2
llvm-89f5c7aa9b6400dc8533219739b5ad64e5c527f0.tar.xz
Merge branch 'release-3.2' into embtk-support-release-3.2
Diffstat (limited to 'lib/Target/Mips/MipsJITInfo.h')
-rw-r--r--lib/Target/Mips/MipsJITInfo.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsJITInfo.h b/lib/Target/Mips/MipsJITInfo.h
index 637a318660..ecda3101a0 100644
--- a/lib/Target/Mips/MipsJITInfo.h
+++ b/lib/Target/Mips/MipsJITInfo.h
@@ -26,10 +26,11 @@ class MipsTargetMachine;
class MipsJITInfo : public TargetJITInfo {
bool IsPIC;
+ bool IsLittleEndian;
public:
explicit MipsJITInfo() :
- IsPIC(false) {}
+ IsPIC(false), IsLittleEndian(true) {}
/// replaceMachineCodeForFunction - Make it so that calling the function
/// whose machine code is at OLD turns into a call to NEW, perhaps by
@@ -58,8 +59,10 @@ class MipsJITInfo : public TargetJITInfo {
unsigned NumRelocs, unsigned char *GOTBase);
/// Initialize - Initialize internal stage for the function being JITted.
- void Initialize(const MachineFunction &MF, bool isPIC) {
+ void Initialize(const MachineFunction &MF, bool isPIC,
+ bool isLittleEndian) {
IsPIC = isPIC;
+ IsLittleEndian = isLittleEndian;
}
};