search for: isinsection

Displaying 5 results from an estimated 5 matches for "isinsection".

2011 Mar 18
2
[LLVMdev] Text or Data symbol
...ion() and GV->getSection() But the section is not set at this stage (hasSection = false) And at the AsmPrinter stage: const GlobalValue *GV = MO.getGlobal(); SectionKind sectionKind = Mang->getSymbol(GV)->getSection().getKind(); But again the section does not seem to be set (sectionKind.isInSection() = false) 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... Thank you ! Damien -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attach...
2011 Mar 21
0
[LLVMdev] Text or Data symbol
...() > But the section is not set at this stage (hasSection = false) > > And at the AsmPrinter stage: > const GlobalValue *GV = MO.getGlobal(); > SectionKind sectionKind = Mang->getSymbol(GV)->getSection().getKind(); > But again the section does not seem to be set (sectionKind.isInSection() = > false) > > 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... > > Thank you ! > > Damien > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <...
2011 Mar 21
1
[LLVMdev] Text or Data symbol
...s not set at this stage (hasSection = false) > > And at the AsmPrinter stage: > const GlobalValue *GV = MO.getGlobal(); > SectionKind sectionKind = Mang->getSymbol(GV)->getSection().getKind(); > But again the section does not seem to be set > (sectionKind.isInSection() = false) > > 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... > > Thank you ! > > Damien > > -------------- next part -------------- An HTML attachment was scrubbed....
2010 Jul 16
0
[LLVMdev] Win32 COFF Support - Patch 3
...+ > + VisitSymbols(UnaryExpr->getSubExpr()); > + } > + break; > + } > +} > + > +void WinCOFFStreamer::AddCommonSymbol(MCSymbol *Symbol, uint64_t Size, > + unsigned ByteAlignment, bool External) { > + assert(!Symbol->isInSection() && "Symbol must not already have a section!"); > + > + std::string SectionName(".bss$linkonce"); > + SectionName.append(Symbol->getName().begin(), Symbol->getName().end()); > + > + MCSymbolData *SymbolData = getSymbolData(Symbol); > + > +...
2010 Jul 14
2
[LLVMdev] Win32 COFF Support - Patch 3
On Sun, Jul 11, 2010 at 6:10 PM, Chris Lattner <clattner at apple.com> wrote: > This probably needs to be slightly tweaked to work with mainline.  I don't see anything objectionable, but I think Daniel needs to review this one. Updated patch to work with mainline. http://github.com/Bigcheese/llvm-mirror/commit/d19a4c82c18afc4830c09b70f02d162292231c94 - Michael Spencer