diff options
author | Ryan Long <ryan.long@oarcorp.com> | 2021-07-12 17:28:26 -0400 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-09-28 09:01:55 -0500 |
commit | 7c8b04db7749c14d993bd3de2800c38953fc2d6f (patch) | |
tree | 30b1ee7759523e7d3f22001aca263009052446fb /tester/covoar/TargetBase.cc | |
parent | CoverageRanges.cc: Fix formatting (diff) | |
download | rtems-tools-7c8b04db7749c14d993bd3de2800c38953fc2d6f.tar.bz2 |
TraceReader: Convert to C++
Diffstat (limited to 'tester/covoar/TargetBase.cc')
-rw-r--r-- | tester/covoar/TargetBase.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tester/covoar/TargetBase.cc b/tester/covoar/TargetBase.cc index 4474fad..7ee45b5 100644 --- a/tester/covoar/TargetBase.cc +++ b/tester/covoar/TargetBase.cc @@ -60,9 +60,7 @@ namespace Target { return targetName_m.c_str(); } - bool TargetBase::isBranch( - const char* const instruction - ) + bool TargetBase::isBranch( const std::string& instruction ) { std::list <std::string>::iterator i; @@ -76,7 +74,7 @@ namespace Target { i = find( conditionalBranchInstructions.begin(), conditionalBranchInstructions.end(), - instruction + instruction.c_str() ); if ( i == conditionalBranchInstructions.end() ) return false; |