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

    <tr>
        <th>Summary</th>
        <td>
            [Flang][Debug] Handle File location appropriately when the input is from stdin 
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            debuginfo,
            flang:ir
      </td>
    </tr>

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

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

<pre>
    While creating the location information/Debug File attribute we need some special handling for stdin. Investigate and fix appropriately. Flang frontend currently uses `standard input` as filename.

I see the following handling in different tools:
-> Clang seems to have both `-` and `<stdin>`.
-> MLIR seems to be using `<stdin>`.
-> Gfortran uses `<stdin>`.

This ticket is to address the issue brought up in https://reviews.llvm.org/D142263.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8k81u6zYQhZ-G2gwsSNSP7YUWSRy1AdpNUaDrkTiS2FCkQI7s5u0L0oFzA1zcDUUInDnnDD9iCHq2RJ1onkVzyXDnxfnuXXu044JWeVzdgjYbnPro_lm0IRg9IWs7Ay8Exo3I2lnQdnJ-TXsh-wsN-wx9PI7MXg87E9wILJGC4FaCsNGo0UAUMbHb5DwEVtrm8GavFFjPyARoFUz6P8Bt827zGpnMRw69wVjjnWWyCsbde7JsPmAPFEC0RWC0Cr0CbbedRVsABpi0IYsr5aK4iOLpvr5BIEphJmeMu0UzD1fagtLTRLE7sHMmiOqz7iCqV3hJPgLRGoAdLHglGBwv0cIhqVoV96J6SeFE9SraIv-hw59_vP311WAg2EMU_mXNb5Pz7NE-0v706H39e9EBWI_vxKCTBirlKYQUWYewEwze7fPCsG8x8MK8pZiyF7L3dNV0C7kx1zV3fo63W9ZStlWeqa5S5-qMGXVle6zbpmrbJls6OqEaj-WxrNvxNIxD25Tn8owSh6Ktsa4y3clCVkUpm7KqatnkQ62mY9OM5akty_P5JOqCVtTmIZslp11byNMpMziQCQlaKVVkLeInpBTyRUg5xUsR1ZP28VdzyXwX2xyGfQ6iLowO_JUnY80mPYDElGguonlO_IrmAr9HEOhO8oP1byzCbSF7n2UkLc548m69swzZ7k33faCz5mUf8tGtQvbRxefnsHn3L40sZJ-yBiH7FPf_AAAA__-Nwy-v">