Skip to content

Commit f0be247

Browse files
author
Chen Zheng
committed
address comments
1 parent 47070d8 commit f0be247

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/Object/XCOFFObjectFile.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,16 +1252,16 @@ Expected<bool> XCOFFSymbolRef::isFunction() const {
12521252
CsectAuxRef.getSymbolType() == XCOFF::XTY_ER)
12531253
return false;
12541254

1255-
// If the next symbol is an XTY_LD type symbol with same address, this XTY_SD
1256-
// symbol is not a function. Otherwise this is a function symbol for
1255+
// If the next symbol is an XTY_LD type symbol with the same address, this
1256+
// XTY_SD symbol is not a function. Otherwise this is a function symbol for
12571257
// -ffunction-sections.
12581258
if (CsectAuxRef.getSymbolType() == XCOFF::XTY_SD) {
12591259
// If this is a csect with size 0, it won't be a function definition.
1260-
// This is used to hack situation that llvm always generates below symbol
1261-
// for -ffunction-sections:
1262-
// FIXME: remove or replace this meaningless symbol.
1260+
// This is used to work around the fact that LLVM always generates below
1261+
// symbol for -ffunction-sections:
12631262
// m 0x00000000 .text 1 unamex **No Symbol**
12641263
// a4 0x00000000 0 0 SD PR 0 0
1264+
// FIXME: remove or replace this meaningless symbol.
12651265
if (getSize() == 0)
12661266
return false;
12671267

0 commit comments

Comments
 (0)