diff options
author | Petar Avramovic <Petar.Avramovic@rt-rk.com> | 2019-05-31 08:15:28 +0000 |
---|---|---|
committer | Petar Avramovic <Petar.Avramovic@rt-rk.com> | 2019-05-31 08:15:28 +0000 |
commit | 9058b50fb2d33a89ae711071e82e2e85a65d0081 (patch) | |
tree | e59942240a589c5d23565e78d578af335b22be7b /llvm/lib/Target/Mips/MipsMachineFunction.h | |
parent | b457e430f3fc8579a41d76a01a2272b11be29f79 (diff) | |
download | bcm5719-llvm-9058b50fb2d33a89ae711071e82e2e85a65d0081.tar.gz bcm5719-llvm-9058b50fb2d33a89ae711071e82e2e85a65d0081.zip |
[mips] Move initGlobalBaseReg to MipsFunctionInfo. NFC
Move initGlobalBaseReg from MipsSEDAGToDAGISel to MipsFunctionInfo.
This way functions used for handling position independent code during
instruction selection, getGlobalBaseReg and initGlobalBaseReg,
end up in same class.
Differential Revision: https://reviews.llvm.org/D62586
llvm-svn: 362206
Diffstat (limited to 'llvm/lib/Target/Mips/MipsMachineFunction.h')
-rw-r--r-- | llvm/lib/Target/Mips/MipsMachineFunction.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsMachineFunction.h b/llvm/lib/Target/Mips/MipsMachineFunction.h index 9e7b9b704ea..b2c6c8d4f33 100644 --- a/llvm/lib/Target/Mips/MipsMachineFunction.h +++ b/llvm/lib/Target/Mips/MipsMachineFunction.h @@ -34,6 +34,10 @@ public: bool globalBaseRegSet() const; unsigned getGlobalBaseReg(); + // Insert instructions to initialize the global base register in the + // first MBB of the function. + void initGlobalBaseReg(); + int getVarArgsFrameIndex() const { return VarArgsFrameIndex; } void setVarArgsFrameIndex(int Index) { VarArgsFrameIndex = Index; } |