forked from OSchip/llvm-project
parent
820e46f3b2
commit
79b82f7d6e
|
@ -495,7 +495,7 @@ that inherits from the ErrorInfo utility, E.g.:
|
|||
|
||||
Error printFormattedFile(StringRef Path) {
|
||||
if (<check for valid format>)
|
||||
return make_error<InvalidObjectFile>(Path);
|
||||
return make_error<BadFileFormat>(Path);
|
||||
// print file contents.
|
||||
return Error::success();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue