summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AVR/AVRISelLowering.h
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-10-01 01:44:39 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-10-01 01:44:39 +0000
commitf24ac13aaae63d92317dac839ce57857a7b444dc (patch)
treea3a843f29303a3d110065a4ab32278de6e9bb33f /llvm/lib/Target/AVR/AVRISelLowering.h
parent2d92c8844e57b590f72abb68cee8eb310c3c5018 (diff)
downloadbcm5719-llvm-f24ac13aaae63d92317dac839ce57857a7b444dc.tar.gz
bcm5719-llvm-f24ac13aaae63d92317dac839ce57857a7b444dc.zip
TLI: Remove DAG argument from getRegisterByName
Replace with the MachineFunction. X86 is the only user, and only uses it for the function. This removes one obstacle from using this in GlobalISel. The other is the more tolerable EVT argument. The X86 use of the function seems questionable to me. It checks hasFP, before frame lowering. llvm-svn: 373292
Diffstat (limited to 'llvm/lib/Target/AVR/AVRISelLowering.h')
-rw-r--r--llvm/lib/Target/AVR/AVRISelLowering.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AVR/AVRISelLowering.h b/llvm/lib/Target/AVR/AVRISelLowering.h
index ed2d0835903..6c722fa5414 100644
--- a/llvm/lib/Target/AVR/AVRISelLowering.h
+++ b/llvm/lib/Target/AVR/AVRISelLowering.h
@@ -125,8 +125,8 @@ public:
std::vector<SDValue> &Ops,
SelectionDAG &DAG) const override;
- unsigned getRegisterByName(const char* RegName, EVT VT,
- SelectionDAG &DAG) const override;
+ Register getRegisterByName(const char* RegName, EVT VT,
+ const MachineFunction &MF) const override;
bool shouldSplitFunctionArgumentsAsLittleEndian(const DataLayout &DL)
const override {
OpenPOWER on IntegriCloud