search for: dumpassemblertofile

Displaying 3 results from an estimated 3 matches for "dumpassemblertofile".

2007 Jan 22
2
[LLVMdev] addPassesToEmit(Whole)File changes?
...at I am outputting are not just functions, but also some global data. I am currently installing older versions to see if that will work, but of course I will need to get it to work with the newest llvm version at some point. Any pointers? Thanks! Marcel This is my current code: -(void)dumpAssemblerToFile:(NSString*)filename { TargetMachine::CodeGenFileType FileType = TargetMachine::AssemblyFile; std::string err1; Module *M=(Module*)module; const TargetMachineRegistry::Entry* entry= TargetMachineRegistry::getClosestStaticTargetForModule( *M, err1 ); TargetMachine &target=*entry->CtorF...
2007 Jan 22
0
[LLVMdev] addPassesToEmit(Whole)File changes?
...at I am outputting are not just functions, but also some global data. I am currently installing older versions to see if that will work, but of course I will need to get it to work with the newest llvm version at some point. Any pointers? Thanks! Marcel This is my current code: -(void)dumpAssemblerToFile:(NSString*)filename { TargetMachine::CodeGenFileType FileType = TargetMachine::AssemblyFile; std::string err1; Module *M=(Module*)module; const TargetMachineRegistry::Entry* entry= TargetMachineRegistry::getClosestStaticTargetForModule( *M, err1 ); TargetMachine &target=*entry->CtorF...
2007 Jan 22
0
[LLVMdev] addPassesToEmit(Whole)File changes?
...ently. for (Module::iterator I = mod.begin(), E = mod.end(); I != E; ++I) if (!I->isExternal()) Passes.run(*I); Passes.doFinalization(); The doInitialization/doFinalization methods handle the global data. -Chris > This is my current code: > > -(void)dumpAssemblerToFile:(NSString*)filename > { > TargetMachine::CodeGenFileType FileType = TargetMachine::AssemblyFile; > std::string err1; > Module *M=(Module*)module; > const TargetMachineRegistry::Entry* entry= > TargetMachineRegistry::getClosestStaticTargetForModule( *M, err1 ); > TargetMac...