Skip to content

Commit 797b5b2

Browse files
author
Ash Dobrescu
committed
Fix warning messgage and test comment
1 parent 36823a0 commit 797b5b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bolt/lib/Core/BinaryContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2379,7 +2379,7 @@ BinaryFunction *BinaryContext::getFunctionForSymbol(const MCSymbol *Symbol,
23792379
if (BF->isInConstantIsland(Address)) {
23802380
this->outs() << "BOLT-WARNING: symbol " << Symbol->getName()
23812381
<< " is in data region of function 0x"
2382-
<< Twine::utohexstr(Address) << ".\n";
2382+
<< Twine::utohexstr(BF->getAddress()) << ".\n";
23832383
return nullptr;
23842384
}
23852385
*EntryDesc = BF->getEntryIDForSymbol(Symbol);

bolt/test/AArch64/check-symbol-area.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This test checks that when looking for a function
2-
// correspnding to a symbol, BOLT is not looking
2+
// corresponding to a symbol, BOLT is not looking
33
// through a data area (constant island).
44

55
# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o

0 commit comments

Comments
 (0)