summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MachObjectWriter.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-06-17 00:49:46 +0000
committerEric Christopher <echristo@apple.com>2010-06-17 00:49:46 +0000
commit93f16372f92941d43da911cabd0a33ad2932a5c3 (patch)
treeeb0cd88146145fca7c4b7268459c4b0f89e1516f /llvm/lib/MC/MachObjectWriter.cpp
parent367f638f0437f9d61e649c805f9ea5e9a83a998b (diff)
downloadbcm5719-llvm-93f16372f92941d43da911cabd0a33ad2932a5c3.tar.gz
bcm5719-llvm-93f16372f92941d43da911cabd0a33ad2932a5c3.zip
Update comment.
llvm-svn: 106191
Diffstat (limited to 'llvm/lib/MC/MachObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/MachObjectWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp
index 347615011a9..79d74b92241 100644
--- a/llvm/lib/MC/MachObjectWriter.cpp
+++ b/llvm/lib/MC/MachObjectWriter.cpp
@@ -758,7 +758,8 @@ public:
// We're only going to have a second symbol in pic mode and it'll be a
// subtraction from the picbase. For 32-bit pic the addend is the difference
- // between the picbase and the next address.
+ // between the picbase and the next address. For 32-bit static the addend
+ // is zero.
if (Target.getSymB()) {
IsPCRel = 1;
} else {
OpenPOWER on IntegriCloud