[GlobalISel][AArch64] Avoid unused function warnings in Release builds

llvm-svn: 352129
This commit is contained in:
Benjamin Kramer 2019-01-24 23:39:47 +00:00
parent dcc963108a
commit 1411ecf08b
1 changed files with 2 additions and 0 deletions

View File

@ -396,6 +396,7 @@ static unsigned selectLoadStoreUIOp(unsigned GenericOpc, unsigned RegBankID,
return GenericOpc; return GenericOpc;
} }
#ifndef NDEBUG
/// Helper function that verifies that we have a valid copy at the end of /// Helper function that verifies that we have a valid copy at the end of
/// selectCopy. Verifies that the source and dest have the expected sizes and /// selectCopy. Verifies that the source and dest have the expected sizes and
/// then returns true. /// then returns true.
@ -426,6 +427,7 @@ static bool isValidCopy(const MachineInstr &I, const RegisterBank &DstBank,
return true; return true;
} }
#endif
/// Helper function for selectCopy. Inserts a subregister copy from /// Helper function for selectCopy. Inserts a subregister copy from
/// \p *From to \p *To, linking it up to \p I. /// \p *From to \p *To, linking it up to \p I.