<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">02.01.2018 12:35, David Blaikie пишет:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAENS6EuUmSjYSbBWzS_Uu89mh_M-CUX-Sr-X+ijLtooMWDS=SA@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </blockquote>
    > +  if (MCTargetStreamer *TS = getTargetStreamer()) {<br>
    > +    TS->changeSection(getCurrentSectionOnly(), Section,
    Subsection, OS);<br>
    > +  } else {<br>
    > +    Section->PrintSwitchToSection(<br>
    > +        *MAI,
    getContext().getObjectFileInfo()->getTargetTriple(), OS,<br>
    > +        Subsection);<br>
    > +  }<br>
    <br>
    > This ^ seems awkward. Is there any way to common these two
    codepaths? (I see the default implementation of changeSection calls
    PrintSwitchToSection, which should  make them common... except in
    this case where MCAsmStreamer has no target streamer? When does that
    happen?)<br>
    <br>
    Hi David,<br>
    I agree with you. But most of targets do not define their own
    TargetStreamer. They don't need anything special in asm streamer.
    That's why it is so weird. <br>
  </body>
</html>