[PATCH] D14889: sancov -not-covered-functions.

Ivan Krasin via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 23 17:37:42 PST 2015


krasin added inline comments.

================
Comment at: tools/sancov/sancov.cc:157
@@ +156,3 @@
+    auto InliningInfo = Symbolizer.symbolizeInlinedCode(ClBinaryName, Addr);
+    FailIfError(InliningInfo);
+    for (uint32_t i = 0; i < InliningInfo->getNumberOfFrames(); ++i) {
----------------
FailIfError, as implemented right now, drops the context in which it occurred. I would expect something like:

Error: The end of the file was unexpectedly encountered (4)

Please, add an additional string param (like Message) and print it into stderr. In this case the invocation will be like

FailIfError("symbolizeInlinedCode: " + ClBinaryName, InliningInfo);

and the error message will suddenly become much more useful:

Error: symbolizeInlinedCode: lala.o: The end of the file was unexpectedly encountered (4)

Note: feel free to improve the actual error message format. The point is to have all the needed data points in the error message. Otherwise, we'll waste our own time later.


http://reviews.llvm.org/D14889





More information about the llvm-commits mailing list