<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/64465>64465</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            GetOrCreateSubrange overloads not available in llvm-c
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          laytan
      </td>
    </tr>
</table>

<pre>
    Hello! I am trying to add debug information for dynamic arrays / slices, I found the `getOrCreateSubrange(int64_t Lo, Metadata *CountNode);` (https://github.com/llvm/llvm-project/blob/eb975626ac0a52ce832d7a34a6e4515a065233f2/llvm/include/llvm/IR/DIBuilder.h#L656). Which I think is exactly what I want.

The problem is that we are using llvm-c and it only seems to implement the `getOrCreateSubrange(int64_t Lo, int64_t Count);`(https://github.com/llvm/llvm-project/blob/b0f4b6587a8e1044f6e4e1e117cc166586678ee5/llvm/include/llvm-c/DebugInfo.h#L1094).

Is there any reason for it not being there in llvm-c? And is there any other way or workaround?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykk82O3DYMx59GvhAZyPoa--DD7AZuB0hboC3QY0FZnLEaWVpI8k799oWdbBOg6CHISV8kRf74J5bi75FoYPqJ6fcNrnVOeQi4VYyNTW4bfqQQEhMtXAEXqHnz8Q41AToHjux6Bx9vKS9YfYpwSxncFnHxE2DOuBVgYoQS_ESFiWe4wi2t0UGdCZjhd6q_5OdMWOm31WaMd2Ki87Ea9WeFD2l3-YkqOqwITFye0xrrz8kREz2TT8xwYKKba30pTF6YGJkY777Oqz1NaWFiDOH1bXn3ktNfNFUmRhuSZWIk25-1EQYnjlpM1EnhzigVGlK61ciNFlLexJc4Pk5h3X9_u7j-ysT4_vq0-uAon2Ym5AejDRP9Cf6Y_TTDFers40fwBehvnGrY4DFjhSs8MNYT4xfGL7_PBC852UDLblh3gwcBZoK17MSPAibA6MBXSDFsUIiWsrfCLy-BFor1W6i-nQ6i_9L8DpiW35Q1ujtjRy1X6mZIUUtte56m1hjdGXPuiPT_wXw37SR3RV3jLX0i2fJe7Sg_QbruYCgTYNwgE5bPgvMVYqpg6ZDmYeHjZ2JMjnDZoX3tm_YtPHCDlOGR8kfMuyiZHBs3SNfLHhsaWtO3QrUd75p5kJNuObXSnvtOc1RaKlLCcHsWt45r3vhBcCF5x3UrhRTdSbvO8Z4cttQ7KyemOC3ow2lP7JTyvfGlrDQYpYxuAloK5ZhDISI94HhkQuxjmYejGLveC1M8-FLLlyjV10DDD_9tOaRXyiGhKwcefEUf0Iav4DRrDsM39_vIrDAxHpn_EwAA__9M2mAs">