[llvm-commits] [dragonegg] r133054 - /dragonegg/trunk/src/Constants.cpp
Duncan Sands
baldrick at free.fr
Wed Jun 15 07:11:26 PDT 2011
Author: baldrick
Date: Wed Jun 15 09:11:26 2011
New Revision: 133054
URL: http://llvm.org/viewvc/llvm-project?rev=133054&view=rev
Log:
Add note on how to eliminate this string specific logic.
Modified:
dragonegg/trunk/src/Constants.cpp
Modified: dragonegg/trunk/src/Constants.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Constants.cpp?rev=133054&r1=133053&r2=133054&view=diff
==============================================================================
--- dragonegg/trunk/src/Constants.cpp (original)
+++ dragonegg/trunk/src/Constants.cpp Wed Jun 15 09:11:26 2011
@@ -716,6 +716,8 @@
}
static Constant *ConvertSTRING_CST(tree exp, TargetFolder &) {
+ // TODO: Enhance GCC's native_encode_expr to handle arbitrary strings and not
+ // just those with a byte component type; then ConvertCST can handle strings.
const ArrayType *StrTy = cast<ArrayType>(ConvertType(TREE_TYPE(exp)));
const Type *ElTy = StrTy->getElementType();
More information about the llvm-commits
mailing list