[PATCH] MS ABI: Implement x86_64 RTTI
Warren Hunt
whunt at google.com
Sun Jun 15 12:24:43 PDT 2014
lgtm, with a few minor nits. Also, I'm assuming you compared the output with cl?
================
Comment at: lib/CodeGen/MicrosoftRTTI.cpp:60
@@ +59,3 @@
+ llvm::Type *PtrType) {
+ if (!isImageRelative(CGM))
+ return PtrType;
----------------
is it more normal do do this this way or use
return isImageRelative(CGM) ? PtrType : CGM.IntTy;
?
================
Comment at: lib/CodeGen/MicrosoftRTTI.cpp:156
@@ +155,3 @@
+ };
+ llvm::ArrayRef<llvm::Type *> FieldTypesRef(FieldTypes);
+ if (!isImageRelative(CGM))
----------------
I assume ArrayRef can take a pointer and a size. If so I think it would be more reasonable to adjust the input size rather than slicing the result.
http://reviews.llvm.org/D4148
More information about the cfe-commits
mailing list