Skip to content

Commit 7cd1a75

Browse files
committed
Remove unused debug code
1 parent 837e565 commit 7cd1a75

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

flang-rt/unittests/Evaluate/ISO-Fortran-binding.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -72,25 +72,9 @@ static void AddNoiseToCdesc(CFI_cdesc_t *dv, CFI_rank_t rank) {
7272
}
7373
}
7474

75-
#ifdef VERBOSE
76-
static void DumpTestWorld(const void *bAddr, CFI_attribute_t attr,
77-
CFI_type_t ty, std::size_t eLen, CFI_rank_t rank,
78-
const CFI_index_t *eAddr) {
79-
std::cout << " base_addr: " << std::hex << reinterpret_cast<std::intptr_t>(bAddr)
80-
" attribute: " << std::dec << static_cast<int>(attr)
81-
" type: " << std::dec << static_cast<int>(ty) << " elem_len: " << std::dec << eLen
82-
" rank: " << std::dec << static_cast<int>(rank) << " extent: "
83-
<< std::hex << reinterpret_cast<std::intptr_t>(eAddr)) << std::endl;
84-
std::cout << std::dec;
85-
}
86-
#endif
87-
8875
static void check_CFI_establish(CFI_cdesc_t *dv, void *base_addr,
8976
CFI_attribute_t attribute, CFI_type_t type, std::size_t elem_len,
9077
CFI_rank_t rank, const CFI_index_t extents[]) {
91-
#ifdef VERBOSE
92-
DumpTestWorld(base_addr, attribute, type, elem_len, rank, extent);
93-
#endif
9478
// CFI_establish reqs from F2018 section 18.5.5
9579
int retCode{
9680
CFI_establish(dv, base_addr, attribute, type, elem_len, rank, extents)};
@@ -303,9 +287,6 @@ static void check_CFI_allocate(CFI_cdesc_t *dv,
303287
const CFI_type_t type{dv->type};
304288
const void *base_addr{dv->base_addr};
305289
const int version{dv->version};
306-
#ifdef VERBOSE
307-
DumpTestWorld(base_addr, attribute, type, elem_len, rank, nullptr);
308-
#endif
309290
int retCode{CFI_allocate(dv, lower_bounds, upper_bounds, elem_len)};
310291
Descriptor *desc = reinterpret_cast<Descriptor *>(dv);
311292
if (retCode == CFI_SUCCESS) {

0 commit comments

Comments
 (0)