瀏覽代碼

* write all ait_const's of value 0 as 'zeroinitializer' so they also work
for pointer constants

git-svn-id: branches/hlcgllvm@30126 -

Jonas Maebe 10 年之前
父節點
當前提交
935c0c86aa
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      compiler/llvm/agllvm.pas

+ 2 - 0
compiler/llvm/agllvm.pas

@@ -650,6 +650,8 @@ implementation
                     else
                     else
                       asmwrite(' -- symbol offset: ' + tostr(hp.value));
                       asmwrite(' -- symbol offset: ' + tostr(hp.value));
                 end
                 end
+              else if hp.value=0 then
+                AsmWrite('zeroinitializer')
               else
               else
                 AsmWrite(tostr(hp.value));
                 AsmWrite(tostr(hp.value));
               AsmLn;
               AsmLn;