<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CodeView] MSVC debugger cannot find global llvm::outs() when self-hosted"
   href="https://bugs.llvm.org/show_bug.cgi?id=35521">35521</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[CodeView] MSVC debugger cannot find global llvm::outs() when self-hosted
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DebugInfo
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>zturner@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>amccarth@google.com, hans@hanshq.net, llvm-bugs@lists.llvm.org, llvm@inglorion.net, rnk@google.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>1) Build LLVM using CMAKE_BUILD_TYPE=Debug using clang-cl and MSVC linker
2) Debug any LLVM tool and set a breakpoint in main.  I used llvm-pdbutil, but
it doesn't really matter what you use.
3) In the watch window, type `llvm::outs().flush()`.  You'll see this in the
result column: "identifier llvm::outs() is undefined".

Note this works when not self-hosted, and also this is a /O0 build.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>