<br>I am again calling for help from LLVM developers ;)<br><br>For my DSP backend, at the lowering stage and also at the AsmPrinter stage, I need to know if a GlobalAddress is a code or a data address.<br><br>So I tried at the lowering stage to use: <br>
GlobalAddressSDNode *GSDN = cast<GlobalAddressSDNode>(Op);<br>const GlobalValue *GV = GSDN->getGlobal();<br>GV->hasSection()  and  GV->getSection()<br>But the section is not set at this stage (hasSection = false)<br>
<br>And at the AsmPrinter stage: <br>const GlobalValue *GV = MO.getGlobal();<br>SectionKind sectionKind = Mang->getSymbol(GV)->getSection().getKind();<br>But again the section does not seem to be set (sectionKind.isInSection() = false)<br>
<br>Do you know a way to tell if a global address corresponds to data or code ? I have to process differently text and data address...<br><br>  Thank you !<br><br>  Damien<br><br>