Replace fprintf with exception
This commit is contained in:
parent
b28a127d27
commit
8eb6a34d54
4 changed files with 40 additions and 19 deletions
|
|
@ -49,7 +49,8 @@ int LLVMInitializeNativeTargetAsmPrinter();
|
|||
|
||||
|
||||
LLVMTargetMachineRef LLVMTargetMachineLookup(const char *arch, const char *cpu,
|
||||
const char *features, int opt);
|
||||
const char *features, int opt,
|
||||
std::string &error);
|
||||
|
||||
/*
|
||||
* Wraps EngineBuilder::selectTarget
|
||||
|
|
@ -66,7 +67,8 @@ void LLVMDisposeTargetMachine(LLVMTargetMachineRef tm);
|
|||
*/
|
||||
unsigned char* LLVMTargetMachineEmitFile(LLVMTargetMachineRef tmref,
|
||||
LLVMModuleRef modref,
|
||||
int assembly, unsigned * lenp);
|
||||
int assembly, unsigned * lenp,
|
||||
std::string &error);
|
||||
|
||||
/*
|
||||
* Wraps TargetMachine::getTargetData
|
||||
|
|
@ -107,7 +109,7 @@ void LLVMPrintRegisteredTargetsForVersion();
|
|||
* Wraps TargetMachine::addPassesToEmitFile
|
||||
*/
|
||||
unsigned char* LLVMGetNativeCodeFromModule(LLVMModuleRef module, int assembly,
|
||||
unsigned * lenp);
|
||||
unsigned * lenp, std::string &error);
|
||||
|
||||
/*
|
||||
* Wraps IRBuilder::CreateFence
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue