浏览代码

* write rtti correct for currency being emulated by int64

git-svn-id: trunk@8865 -
florian 18 年之前
父节点
当前提交
c62d72f98c
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      compiler/ncgrtti.pas

+ 8 - 0
compiler/ncgrtti.pas

@@ -484,6 +484,14 @@ implementation
                 current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_8bit(tkWChar));
                 current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_8bit(tkWChar));
                 dointeger;
                 dointeger;
               end;
               end;
+            scurrency:
+              begin
+                current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_8bit(tkFloat));
+                write_rtti_name(def);
+                if (tf_requires_proper_alignment in target_info.flags) then
+                  current_asmdata.asmlists[al_rtti].concat(cai_align.Create(sizeof(TConstPtrUInt)));
+                current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_8bit(ftCurr));
+              end;
             else
             else
               begin
               begin
                 current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_8bit(tkInteger));
                 current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_8bit(tkInteger));