<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <b style="color: rgb(0, 0, 0); font-family: 'Times New Roman';
      font-size: medium; font-style: normal; font-variant: normal;
      letter-spacing: normal; line-height: normal; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px;">On 10/30/2015 10:02 PM, Krzysztof
      Parzyszek via llvm-dev</b><span style="color: rgb(0, 0, 0);
      font-family: 'Times New Roman'; font-size: medium; font-style:
      normal; font-variant: normal; font-weight: normal; letter-spacing:
      normal; line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      display: inline !important; float: none; background-color:
      rgb(255, 255, 255);"><span class="Apple-converted-space"> </span></span><a
href="mailto:llvm-dev%40lists.llvm.org?Subject=Re%3A%20%5Bllvm-dev%5D%20opt%3A%20undefined%20symbol%3A%20_ZN4llvm9DebugFlagE&In-Reply-To=%3C5633A294.8080506%40codeaurora.org%3E"
      title="[llvm-dev] opt: undefined symbol: _ZN4llvm9DebugFlagE"
      style="font-family: 'Times New Roman'; font-size: medium;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: normal; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px;">wrote:</a>
    <hr style="color: rgb(0, 0, 0); font-family: 'Times New Roman';
      font-size: medium; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: auto;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;">
    <pre style="white-space: pre-wrap; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">On 10/30/2015 11:01 AM, Irini via llvm-dev wrote:
>>
<i>
</i>><i>> I try to run my pass by executing:
</i>><i>>  opt -load ../../../Release+Asserts/lib/MyPass.so -MyPassName
</i>>>
>><i> But I get this error:
</i>>><i>
</i>><i>> Error opening '../../../Release+Asserts/lib/MyPass.so':
</i>><i>> ../../../Release+Asserts/lib/MyPass.so: undefined symbol:</i><i> _ZN4llvm9DebugFlagE
</i>><i>> -load request ignored.
</i>>><i>  opt: Unknown command line argument '-MyPassName'. Try: 'opt -help'
</i>>
>
> Is your "opt" built with NDEBUG?
>
> -Krzysztof

I run clang with DNDEBUG.
and opt with -module-debuginfo 
but error is still here.
(I still need the debug flag though, is there any other way?)
</pre>
    <pre class="moz-signature" cols="72">
-Irini</pre>
  </body>
</html>