[PATCH] D32154: [AVR] Migrate to new MCAsmInfo CodePointerSize

Leslie Zhai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 17 23:38:29 PDT 2017


xiangzhai created this revision.

Hi LLVM developers,

Since Konstantin changed protected member `PointerSize` of `class MCAsmInfo` to `CodePointerSize` in https://reviews.llvm.org/D30879, it broke to build the AVR Target, so I simply migrate to new `MCAsmInfo` `CodePointerSize`, please review my patch, thanks a lot!

Regards,
Leslie Zhai


Repository:
  rL LLVM

https://reviews.llvm.org/D32154

Files:
  lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp


Index: lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp
===================================================================
--- lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp
+++ lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp
@@ -18,7 +18,7 @@
 namespace llvm {
 
 AVRMCAsmInfo::AVRMCAsmInfo(const Triple &TT) {
-  PointerSize = 2;
+  CodePointerSize = 2;
   CalleeSaveStackSlotSize = 2;
   CommentString = ";";
   PrivateGlobalPrefix = ".L";


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32154.95530.patch
Type: text/x-patch
Size: 435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170418/4afb44cb/attachment.bin>


More information about the llvm-commits mailing list