On Fri, Jun 22, 2012 at 5:41 PM, João Matos <[email protected]> wrote:
> + case PredefinedExpr::LFunction: OS << " L__FUNCTION__"; break;
>
> Minor nitpick: On the diff this seems one space misaligned from the
> other statements.
>
> Can't review the code gen part since I'm not too familiar with that
> part of Clang yet. Apart from that it looks OK to me (with Aaron's
> fixes).
For the CodeGen part:
+ const ConstantArrayType *CAT =
+ getContext().getAsConstantArrayType(E->getType());
+ QualType ElemType = CAT->getElementType();
+ llvm::Constant *C;
+ if (ElemType == getContext().WCharTy.withConst()) {
CAT->getElementType()->isWideCharType(). You can also use
Type::getArrayElementTypeNoTypeQual here, since you don't care about
cv-qualifiers.
+ GlobalVarName += ".WChar";
This seems unnecessary, since GlobalVarName contains the L already.
A test for the CodeGen part would be great.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits