r197268 - Every target sets DescriptionString. Assert that.
Rafael Espindola
rafael.espindola at gmail.com
Fri Dec 13 11:56:31 PST 2013
Author: rafael
Date: Fri Dec 13 13:56:31 2013
New Revision: 197268
URL: http://llvm.org/viewvc/llvm-project?rev=197268&view=rev
Log:
Every target sets DescriptionString. Assert that.
Modified:
cfe/trunk/include/clang/Basic/TargetInfo.h
cfe/trunk/lib/Basic/TargetInfo.cpp
Modified: cfe/trunk/include/clang/Basic/TargetInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/TargetInfo.h?rev=197268&r1=197267&r2=197268&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/TargetInfo.h (original)
+++ cfe/trunk/include/clang/Basic/TargetInfo.h Fri Dec 13 13:56:31 2013
@@ -579,6 +579,7 @@ public:
}
const char *getTargetDescription() const {
+ assert(DescriptionString);
return DescriptionString;
}
Modified: cfe/trunk/lib/Basic/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/TargetInfo.cpp?rev=197268&r1=197267&r2=197268&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/TargetInfo.cpp (original)
+++ cfe/trunk/lib/Basic/TargetInfo.cpp Fri Dec 13 13:56:31 2013
@@ -69,8 +69,7 @@ TargetInfo::TargetInfo(const llvm::Tripl
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;
More information about the cfe-commits
mailing list