aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Sparc
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-12-09 18:51:01 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-12-09 18:51:01 +0000
commit3bf960ccacf7e226bc9ae66cb77b4098d058e71f (patch)
treed4576374baf719855573b00033b4354d5a13d9ff /lib/Target/Sparc
parent2dc45b818f2e8b41376fc23563c67a7ecf093323 (diff)
Fix asm-printing directives (how did we not see this before...apparently,
everything was an int!) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r--lib/Target/Sparc/SparcAsmPrinter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/Sparc/SparcAsmPrinter.cpp b/lib/Target/Sparc/SparcAsmPrinter.cpp
index 80fc85b140..432aa2c594 100644
--- a/lib/Target/Sparc/SparcAsmPrinter.cpp
+++ b/lib/Target/Sparc/SparcAsmPrinter.cpp
@@ -284,15 +284,15 @@ void V8Printer::emitGlobalConstant(const Constant *CV) {
O << ".byte";
break;
case Type::UShortTyID: case Type::ShortTyID:
- O << ".word";
+ O << ".half";
break;
case Type::FloatTyID: case Type::PointerTyID:
case Type::UIntTyID: case Type::IntTyID:
- O << ".long";
+ O << ".word";
break;
case Type::DoubleTyID:
case Type::ULongTyID: case Type::LongTyID:
- O << ".quad";
+ O << ".xword";
break;
default:
assert (0 && "Can't handle printing this type of thing");