Browse Source

* don't write comments in the LLVM IR about ait_section/ait_align elements,
as these can appear in the middle of aggregate constants and hence
otherwise break the definition

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

Jonas Maebe 11 years ago
parent
commit
099588aaf5
1 changed files with 4 additions and 9 deletions
  1. 4 9
      compiler/llvm/agllvm.pas

+ 4 - 9
compiler/llvm/agllvm.pas

@@ -780,17 +780,12 @@ implementation
                 WriteTempalloc(tai_tempalloc(hp));
                 WriteTempalloc(tai_tempalloc(hp));
             end;
             end;
 
 
-          ait_align :
-            begin
-              { has to be specified as part of the symbol declaration }
-              AsmWriteln('; error: explicit aligns are forbidden');
-//             internalerror(2013010714);
-            end;
-
+          ait_align,
           ait_section :
           ait_section :
             begin
             begin
-              AsmWrite(target_asm.comment);
-              AsmWriteln('section');
+              { ignore, specified as part of declarations -- don't write
+                comment, because could appear in the middle of an aggregate
+                constant definition }
             end;
             end;
 
 
           ait_datablock :
           ait_datablock :