Every target sets DescriptionString. Assert that.

llvm-svn: 197268
This commit is contained in:
Rafael Espindola 2013-12-13 19:56:31 +00:00
parent 4c50d46e0c
commit 1658de9a2a
2 changed files with 2 additions and 2 deletions

View File

@ -579,6 +579,7 @@ public:
}
const char *getTargetDescription() const {
assert(DescriptionString);
return DescriptionString;
}

View File

@ -69,8 +69,7 @@ TargetInfo::TargetInfo(const llvm::Triple &T) : TargetOpts(), Triple(T) {
FloatFormat = &llvm::APFloat::IEEEsingle;
DoubleFormat = &llvm::APFloat::IEEEdouble;
LongDoubleFormat = &llvm::APFloat::IEEEdouble;
DescriptionString = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-"
"i64:64:64-f32:32:32-f64:64:64-n32";
DescriptionString = 0;
UserLabelPrefix = "_";
MCountName = "mcount";
RegParmMax = 0;