Skip to content

Commit 07fcd4e

Browse files
committed
Prepare for different UHDM AllObjects() type.
* AllObjects() will return a different map type after next submodule sync. This will work with both. chipsalliance/UHDM#690 * CMake: prepare for test switch off for ANTLR CPP tests available in the upcoming version antlr/antlr4#3624 Signed-off-by: Henner Zeller <[email protected]>
1 parent e154f9b commit 07fcd4e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
3030

3131
set(FLATBUFFERS_BUILD_TESTS OFF CACHE BOOL "Skip flatbuffers' tests")
3232
add_subdirectory(third_party/flatbuffers EXCLUDE_FROM_ALL)
33+
34+
set(ANTLR_BUILD_CPP_TESTS OFF CACHE BOOL "Skip ANTLR tests")
3335
add_subdirectory(third_party/antlr4_fast/runtime/Cpp EXCLUDE_FROM_ALL)
3436

3537
set(UHDM_BUILD_TESTS OFF CACHE BOOL "Skip UHDM tests")

src/DesignCompile/UhdmChecker.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,8 @@ float UhdmChecker::reportCoverage(const fs::path& reportFile) {
525525

526526
void UhdmChecker::annotate(CompileDesign* m_compileDesign) {
527527
Serializer& s = m_compileDesign->getSerializer();
528-
const std::unordered_map<const BaseClass*, unsigned long>& objects =
529-
s.AllObjects();
530-
for (auto& obj : objects) {
528+
const auto& objects = s.AllObjects();
529+
for (const auto& obj : objects) {
531530
const BaseClass* bc = obj.first;
532531
if (!bc) continue;
533532
bool unsupported = false;

0 commit comments

Comments
 (0)