diff options
author | Alex White <alex.white@oarcorp.com> | 2021-02-24 15:34:51 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-03-30 13:15:57 -0500 |
commit | 9fce5fc7c20e507ee01cd355ec3822243f6c18b9 (patch) | |
tree | 96eeaae08ad8ae6fcb1e26c296e25cd2725f3143 /tester/covoar/TargetBase.cc | |
parent | rld-process: Add named tempfile constructor (diff) | |
download | rtems-tools-9fce5fc7c20e507ee01cd355ec3822243f6c18b9.tar.bz2 |
covoar/TargetBase: Rename branchInstructions to conditionalBranchInstructions
The TargetBase class contains a member variable named
branchInstructions. The name omits the fact that it is only meant to
contain conditional branch instructions. Its name has been changed to
conditionalBranchInstructions to avoid confusion.
Diffstat (limited to 'tester/covoar/TargetBase.cc')
-rw-r--r-- | tester/covoar/TargetBase.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tester/covoar/TargetBase.cc b/tester/covoar/TargetBase.cc index 354a580..4474fad 100644 --- a/tester/covoar/TargetBase.cc +++ b/tester/covoar/TargetBase.cc @@ -66,15 +66,19 @@ namespace Target { { std::list <std::string>::iterator i; - if (branchInstructions.empty()) { + if (conditionalBranchInstructions.empty()) { throw rld::error( "DETERMINE BRANCH INSTRUCTIONS FOR THIS ARCHITECTURE! -- fix me", "TargetBase::isBranch" ); } - i = find(branchInstructions.begin(), branchInstructions.end(), instruction); - if ( i == branchInstructions.end() ) + i = find( + conditionalBranchInstructions.begin(), + conditionalBranchInstructions.end(), + instruction + ); + if ( i == conditionalBranchInstructions.end() ) return false; return true; |