Skip to content

Commit 23f144e

Browse files
committed
[NFC] Add extra documentation for GetSymbolFromOperand() in PPCMCInstLower.cpp
Add a missing comment from D155600, where we note that we get the symbol from a global, due to XCOFF-specific intricacies.
1 parent 463c9f4 commit 23f144e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/PowerPC/PPCMCInstLower.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ using namespace llvm;
3232
static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO,
3333
AsmPrinter &AP) {
3434
if (MO.isGlobal()) {
35+
// Get the symbol from the global, accounting for XCOFF-specific
36+
// intricacies (see TargetLoweringObjectFileXCOFF::getTargetSymbol).
3537
const GlobalValue *GV = MO.getGlobal();
3638
return AP.getSymbol(GV);
3739
}

0 commit comments

Comments
 (0)