소스 검색

* 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
                       asmwrite(' -- symbol offset: ' + tostr(hp.value));
                 end
+              else if hp.value=0 then
+                AsmWrite('zeroinitializer')
               else
                 AsmWrite(tostr(hp.value));
               AsmLn;