summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CppBackend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-05-01 23:54:26 +0000
committerChris Lattner <sabre@nondot.org>2009-05-01 23:54:26 +0000
commite01821edbd9d2e5fc72af1c607c9423acb2b58c8 (patch)
tree3e4e5decf36fe8f554279c873194eb3e5fb54417 /llvm/lib/Target/CppBackend
parent82c1512ce4ae445ba90efac76eeead93cf97407d (diff)
downloadbcm5719-llvm-e01821edbd9d2e5fc72af1c607c9423acb2b58c8.tar.gz
bcm5719-llvm-e01821edbd9d2e5fc72af1c607c9423acb2b58c8.zip
'The attached patch fixes an issue where llc -march=cpp fails with
"Invalid primitive type" on input containing the x86_fp80 type.' Patch by Collin Winter! llvm-svn: 70610
Diffstat (limited to 'llvm/lib/Target/CppBackend')
-rw-r--r--llvm/lib/Target/CppBackend/CPPBackend.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp
index ffb805691fa..6adb73ae259 100644
--- a/llvm/lib/Target/CppBackend/CPPBackend.cpp
+++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp
@@ -359,9 +359,10 @@ namespace {
unsigned BitWidth = cast<IntegerType>(Ty)->getBitWidth();
return "IntegerType::get(" + utostr(BitWidth) + ")";
}
- case Type::FloatTyID: return "Type::FloatTy";
- case Type::DoubleTyID: return "Type::DoubleTy";
- case Type::LabelTyID: return "Type::LabelTy";
+ case Type::X86_FP80TyID: return "Type::X86_FP80Ty";
+ case Type::FloatTyID: return "Type::FloatTy";
+ case Type::DoubleTyID: return "Type::DoubleTy";
+ case Type::LabelTyID: return "Type::LabelTy";
default:
error("Invalid primitive type");
break;
OpenPOWER on IntegriCloud