diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-10-01 01:44:39 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-10-01 01:44:39 +0000 |
| commit | f24ac13aaae63d92317dac839ce57857a7b444dc (patch) | |
| tree | a3a843f29303a3d110065a4ab32278de6e9bb33f /llvm/include | |
| parent | 2d92c8844e57b590f72abb68cee8eb310c3c5018 (diff) | |
| download | bcm5719-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/include')
| -rw-r--r-- | llvm/include/llvm/CodeGen/TargetLowering.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/TargetLowering.h b/llvm/include/llvm/CodeGen/TargetLowering.h index 4037587b249..b8ed082ab87 100644 --- a/llvm/include/llvm/CodeGen/TargetLowering.h +++ b/llvm/include/llvm/CodeGen/TargetLowering.h @@ -3671,8 +3671,8 @@ public: /// Return the register ID of the name passed in. Used by named register /// global variables extension. There is no target-independent behaviour /// so the default action is to bail. - virtual unsigned getRegisterByName(const char* RegName, EVT VT, - SelectionDAG &DAG) const { + virtual Register getRegisterByName(const char* RegName, EVT VT, + const MachineFunction &MF) const { report_fatal_error("Named registers not implemented for this target"); } |

