forked from OSchip/llvm-project
Few targets like the tiny little PIC16 have only 16-bit pointers.
llvm-svn: 62763
This commit is contained in:
parent
4a0bf66eb8
commit
4186ddfc5a
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue