1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
Go to file
George Rimar bdd80e6afb [llvm-readobj/llvm-readelf] - Improve/cleanup the error reporting API.
urrently we have the following functions for error reporting:

--
LLVM_ATTRIBUTE_NORETURN void reportError(Twine Msg);
void reportError(Error Err, StringRef Input); 
void reportWarning(Twine Msg);
void reportWarning(StringRef Input, Error Err);
void warn(llvm::Error Err);
void error(std::error_code EC);
---

Problems are: naming is inconsistent, arguments order is inconsistent,
some of the functions looks excessive.

After applying this patch we have:

---
LLVM_ATTRIBUTE_NORETURN void reportError(Error Err, StringRef Input); 
LLVM_ATTRIBUTE_NORETURN void reportError(std::error_code EC, StringRef Input);
void reportWarning(Error Err, StringRef Input);
---

I'd be happy to remove reportError(std::error_code EC, StringRef Input) too, but it
is used by COFF heavily.

Test cases were updated, they show an improvement introduced.

Differential revision: https://reviews.llvm.org/D66286

llvm-svn: 369190
2019-08-17 14:36:40 +00:00
benchmarks
bindings Bump llvm-go to C++14 2019-08-15 10:55:25 +00:00
cmake [AIX] For XL, pick GCC-compatible std & default warning options 2019-08-15 22:23:53 +00:00
docs Add LLVMLibC proposal to docs/index.rst. 2019-08-15 18:08:11 +00:00
examples [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
include [circular_raw_ostream] Delegate is_displayed to contained stream 2019-08-17 14:20:41 +00:00
lib Revert Revert [AArch64InstrInfo] Stop getInstSizeInBytes returning non-zero for meta instructions. 2019-08-17 09:22:36 +00:00
projects [libc++] Take 2: Integrate the PSTL into libc++ 2019-08-05 18:29:14 +00:00
resources
runtimes
test [llvm-readobj/llvm-readelf] - Improve/cleanup the error reporting API. 2019-08-17 14:36:40 +00:00
tools [llvm-readobj/llvm-readelf] - Improve/cleanup the error reporting API. 2019-08-17 14:36:40 +00:00
unittests [ORC] Re-introduce self-dependence accidentally dropped from a unit test. 2019-08-16 23:20:54 +00:00
utils Add LLDB dataformatters for llvm::StringRef and lldb_private::ConstString 2019-08-16 23:47:57 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt Add support in CMake to statically link the C++ standard library. 2019-08-14 19:55:59 +00:00
CODE_OWNERS.TXT
configure
CREDITS.TXT Update email address. 2019-07-17 07:02:02 +00:00
LICENSE.TXT
llvm.spec.in
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.