aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-12-24 01:00:15 +0000
committerNate Begeman <natebegeman@mac.com>2005-12-24 01:00:15 +0000
commit50fb3c498601a84e0d82d7bab3e28c820dd64598 (patch)
tree27edc49f3ae49f28b6e5d3886897e45d1c74d8d7 /lib/Target/PowerPC/PPCAsmPrinter.cpp
parent443045a816be7d7fdcf4ff8865e22d718d87a7d6 (diff)
Fix one of the things in the todo file, and get a bit closer to folding
constant offsets from statics into the address arithmetic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24999 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCAsmPrinter.cpp')
-rw-r--r--lib/Target/PowerPC/PPCAsmPrinter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index a5eb9182ee..f75e4aae22 100644
--- a/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -331,6 +331,7 @@ void PPCAsmPrinter::printOp(const MachineOperand &MO) {
// Computing the address of a global symbol, not calling it.
GlobalValue *GV = MO.getGlobal();
std::string Name = Mang->getValueName(GV);
+ int offset = MO.getOffset();
// External or weakly linked global variables need non-lazily-resolved stubs
if (!PPCGenerateStaticCode) {