Displaying 3 results from an estimated 3 matches for "gvname".
Did you mean:
vname
2016 Oct 14
2
creating an .init section
Hi,
I would like to create an .init section in the LLVM backend. Can anyone shed me the light on how to do it? Do I have to create it in the clang?
Thanks,
Jin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161014/4f262397/attachment.html>
2004 Oct 19
1
[LLVMdev] Re:question about Insert callInst to call a function in library
..."Decode to visible string");
}
bool DecodeStr::runOnFunction(Function &F){
get_randKey(F.getParent());
DecodeString(F.getParent());
return true;
}
void DecodeStr::get_randKey(Module *M){
for(Module::giterator gI=M->gbegin(),gE=M->gend();gI!=gE;++gI){
std::string GVname = gI->getName();
if(strcmp(GVname.c_str(),"Gvkey")==0){
randKey =(gI->getInitializer());
}
}
}
void DecodeStr::DecodeString(Module *M){
std::cerr<<"filename "<<M->getModuleIdentifier()<<endl;
for(Module::giterator gI = M->gbegin...
2017 May 22
2
DebugInfo, Metadata usage
...;\n\nPrint All Strings Declarations: \n";
for(GlobalVariable& GV : M->globals())
{
if(!GV.hasInitializer()) continue;
if(ConstantDataSequential *CDS =
dyn_cast<ConstantDataSequential>(GV.getInitializer()))
{
llvm::outs() << "GVName: " << GV.getName() << "\n";
llvm::outs() << "\tRawDataValues : " <<
CDS->getRawDataValues().str() << "\n"; // here I see my wchar string
if(CDS->isString() || CDS->isCString()) // but these checks...