search for: displayerrorinfo

Displaying 1 result from an estimated 1 matches for "displayerrorinfo".

2011 Feb 04
1
[LLVMdev] PareAssemblyFile returning "expected top-level entity" error message
Hello all, I am trying to generate 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 << &quo...