Skip to content

Commit 8b29c5c

Browse files
committed
[JITLink] Move debugging output helper array into LLVM_DEBUG. NFC.
This doesn't need a separate guard.
1 parent 6e41055 commit 8b29c5c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/ExecutionEngine/JITLink/aarch64.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,10 +334,8 @@ Error lowerPointer64AuthEdgesToSigningFunction(LinkGraph &G) {
334334
formatv("{0:x}", B->getFixupAddress(E).getValue()) +
335335
" has invalid encoded addend " + formatv("{0:x}", EncodedInfo));
336336

337-
#ifndef NDEBUG
338-
const char *const KeyNames[] = {"IA", "IB", "DA", "DB"};
339-
#endif // NDEBUG
340337
LLVM_DEBUG({
338+
const char *const KeyNames[] = {"IA", "IB", "DA", "DB"};
341339
dbgs() << " " << B->getFixupAddress(E) << " <- " << ValueToSign
342340
<< " : key = " << KeyNames[Key] << ", discriminator = "
343341
<< formatv("{0:x4}", InitialDiscriminator)

0 commit comments

Comments
 (0)