[FileCheck, 2/4] NFC: Switch to APInt getter for ExpressionValue
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Thu, 29 Jun 2023 21:44:24 +0000 (22:44 +0100)
committerThomas Preud'homme <thomas.preudhomme@arm.com>
Tue, 4 Jul 2023 20:42:11 +0000 (21:42 +0100)
commitfc0d1c05a04b7b3fbb8805de53d695f0deeac57c
tree2c399e6d546a0a167cd7291a5175aad7c0065ef7
parentcf57fcfa0256df8d69638ab1462267413755ba86
[FileCheck, 2/4] NFC: Switch to APInt getter for ExpressionValue

Use an APInt getter as the only interface to getting the value out of an
ExpressionValue. This paves the way to switch ExpressionValue to handle
any integer without causing too big of a patch.

Reviewed By: arichardson

Differential Revision: https://reviews.llvm.org/D154429
llvm/lib/FileCheck/FileCheck.cpp
llvm/lib/FileCheck/FileCheckImpl.h
llvm/unittests/FileCheck/FileCheckTest.cpp