summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Fertile <sfertile@ca.ibm.com>2019-09-26 15:12:30 +0000
committerSean Fertile <sfertile@ca.ibm.com>2019-09-26 15:12:30 +0000
commited97f8042ba98dd2ef6eaa8dcb268fc9e0e8888b (patch)
treeb1d1e5e51aee4328d511f32c1154be4dd2e5900f
parenteaf6746db0797fbbe40bf9f8ffb07a54295bbb4f (diff)
downloadbcm5719-llvm-ed97f8042ba98dd2ef6eaa8dcb268fc9e0e8888b.tar.gz
bcm5719-llvm-ed97f8042ba98dd2ef6eaa8dcb268fc9e0e8888b.zip
Updated comments in LWZtoc pseudo expansion.
Refined a couple of the comments in the LWZtoc expansion code based on a post commit review comment. llvm-svn: 372986
-rw-r--r--llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 5ab2701be0e..6e0fdd8574e 100644
--- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -685,15 +685,16 @@ void PPCAsmPrinter::EmitInstruction(const MachineInstr *MI) {
return;
}
- // Otherwise use the TOC. 'TOCEntry' is a local symbol used to reference
- // the storage allocated in the TOC which contains the address of
+ // Otherwise use the TOC. 'TOCEntry' is a label used to reference the
+ // storage allocated in the TOC which contains the address of
// 'MOSymbol'. Said TOC entry will be synthesized later.
MCSymbol *TOCEntry = lookUpOrCreateTOCEntry(MOSymbol);
const MCExpr *Exp =
MCSymbolRefExpr::create(TOCEntry, MCSymbolRefExpr::VK_None, OutContext);
- // AIX uses the local symbol directly for the operand; that the symbol is
- // accessed toc-relative is implicit.
+ // AIX uses the label directly as the lwz displacement operand for
+ // references into the toc section. The displacement value will be generated
+ // relative to the toc-base.
if (IsAIX) {
assert(
TM.getCodeModel() == CodeModel::Small &&
OpenPOWER on IntegriCloud