diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-01-22 10:14:21 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-01-22 10:14:21 +0000 |
commit | 4186ddfc5ac59b48f466a005ac8619dc29e4b1db (patch) | |
tree | c923d91dc517ab6fa8417de22b720684dea640eb | |
parent | 4a0bf66eb886221be5f4417a40f9576ac71ffa3e (diff) | |
download | bcm5719-llvm-4186ddfc5ac59b48f466a005ac8619dc29e4b1db.tar.gz bcm5719-llvm-4186ddfc5ac59b48f466a005ac8619dc29e4b1db.zip |
Few targets like the tiny little PIC16 have only 16-bit pointers.
llvm-svn: 62763
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 5b665a0c221..5085fd4bdab 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1516,6 +1516,10 @@ void AsmPrinter::printDataDirective(const Type *type) { 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(); } |