diff options
| author | Quentin Colombet <qcolombet@apple.com> | 2016-04-21 18:34:43 +0000 |
|---|---|---|
| committer | Quentin Colombet <qcolombet@apple.com> | 2016-04-21 18:34:43 +0000 |
| commit | c320fb4eae5d11c912dba16bd306b255a9317441 (patch) | |
| tree | cfaf010d726656415fcd233fc19d3c0111bcd6c7 /llvm/lib/CodeGen/GlobalISel/RegisterBank.cpp | |
| parent | 1b5bf445a0f4e3a75c19cafbe003caafeaabc0e7 (diff) | |
| download | bcm5719-llvm-c320fb4eae5d11c912dba16bd306b255a9317441.tar.gz bcm5719-llvm-c320fb4eae5d11c912dba16bd306b255a9317441.zip | |
[RegisterBankInfo] Change the API for the verify methods.
Return bool instead of void so that it is natural to put the calls into
asserts.
llvm-svn: 267033
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/RegisterBank.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/GlobalISel/RegisterBank.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/RegisterBank.cpp b/llvm/lib/CodeGen/GlobalISel/RegisterBank.cpp index aae8148bcbb..01ee4d77a3a 100644 --- a/llvm/lib/CodeGen/GlobalISel/RegisterBank.cpp +++ b/llvm/lib/CodeGen/GlobalISel/RegisterBank.cpp @@ -22,7 +22,7 @@ const unsigned RegisterBank::InvalidID = UINT_MAX; RegisterBank::RegisterBank() : ID(InvalidID), Name(nullptr), Size(0) {} -void RegisterBank::verify(const TargetRegisterInfo &TRI) const { +bool RegisterBank::verify(const TargetRegisterInfo &TRI) const { assert(isValid() && "Invalid register bank"); assert(ContainedRegClasses.size() == TRI.getNumRegClasses() && "TRI does not match the initialization process?"); @@ -50,6 +50,7 @@ void RegisterBank::verify(const TargetRegisterInfo &TRI) const { assert(covers(SubRC) && "Not all subclasses are covered"); } } + return true; } bool RegisterBank::covers(const TargetRegisterClass &RC) const { |

