diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2020-01-03 14:50:19 -0800 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2020-01-03 17:02:10 -0800 |
commit | c8ab40ca0e760b50cc789b7a9d2de8d9eeebd261 (patch) | |
tree | 37ac0ae0780c585f2ac67fc7265ecae4b5991d0a /llvm/include | |
parent | 6c87623615b3befdf62e3a5cd6c408a698f1c2d9 (diff) | |
download | bcm5719-llvm-c8ab40ca0e760b50cc789b7a9d2de8d9eeebd261.tar.gz bcm5719-llvm-c8ab40ca0e760b50cc789b7a9d2de8d9eeebd261.zip |
[Remarks] Warn if a remark file is not found when processing static archives
Static archives contain object files which contain sections pointing to
external remark files.
When static archives are shipped without the remark files, dsymutil
shouldn't generate an error.
Instead, generate a warning to inform the user that remarks for that
library won't be available in the .dSYM.
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/Support/Error.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/Error.h b/llvm/include/llvm/Support/Error.h index 75fca01b127..44676338808 100644 --- a/llvm/include/llvm/Support/Error.h +++ b/llvm/include/llvm/Support/Error.h @@ -1232,6 +1232,8 @@ public: Err->log(OS); } + StringRef getFileName() { return FileName; } + Error takeError() { return Error(std::move(Err)); } std::error_code convertToErrorCode() const override; |