瀏覽代碼

* don't check whether references are PIC-safe when targeting LLVM, that's
not taken care of at our level in that case

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

Jonas Maebe 12 年之前
父節點
當前提交
66cbff35f6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      compiler/aasmtai.pas

+ 2 - 0
compiler/aasmtai.pas

@@ -2558,6 +2558,7 @@ implementation
             if (ref^.segment<>NR_NO) and (ref^.segment<>NR_DS) then
               segprefix:=ref^.segment;
 {$endif}
+{$ifndef llvm}
             if (cs_create_pic in current_settings.moduleswitches) and
               assigned(r.symbol) and
               not assigned(r.relsymbol) and
@@ -2567,6 +2568,7 @@ implementation
 {$endif ARM}
               then
               internalerror(200502052);
+{$endif not llvm}
             typ:=top_ref;
             if assigned(add_reg_instruction_hook) then
               begin