[llvm-commits] [llvm] r62763 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Sanjiv Gupta
sanjiv.gupta at microchip.com
Thu Jan 22 02:14:29 PST 2009
Author: sgupta
Date: Thu Jan 22 04:14:21 2009
New Revision: 62763
URL: http://llvm.org/viewvc/llvm-project?rev=62763&view=rev
Log:
Few targets like the tiny little PIC16 have only 16-bit pointers.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=62763&r1=62762&r2=62763&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Thu Jan 22 04:14:21 2009
@@ -1516,6 +1516,10 @@
assert(TAI->getData64bitsDirective() &&
"Target cannot handle 64-bit pointer exprs!");
O << TAI->getData64bitsDirective();
+ } else if (TD->getPointerSize() == 2) {
+ O << TAI->getData16bitsDirective();
+ } else if (TD->getPointerSize() == 1) {
+ O << TAI->getData8bitsDirective();
} else {
O << TAI->getData32bitsDirective();
}
More information about the llvm-commits
mailing list