Displaying 1 result from an estimated 1 matches for "errfilenam".
Did you mean:
errfilename
2011 Feb 04
1
[LLVMdev] PareAssemblyFile returning "expected top-level entity" error message
...erate a module object using something like this: (to use for code analysis)
Module *topModule;
SMDiagnostic error;
topModule = ParseAssemblyFile("code.s", error, getGlobalContext());
displayErrorInfo(error);
void displayErrorInfo(SMDiagnostic& err)
{
std::string errFileName = err.getFilename();
std::string errMsg = err.getMessage();
std::string errLineContents = err.getLineContents();
int errLineNo = err.getLineNo(), errColNo = err.getColumnNo();
std::cout << "Error File Name: "<< errFileName << std::endl;
std::cout <...