mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
e59fc0b2e5
make_error_code(object_error) is slow because object::object_category() uses a ManagedStatic variable. But the real problem is that the function is called too frequently. This patch uses std::error_code() instead of object_error::success. In most cases, we return "success", so this patch reduces number of function calls to that function. http://reviews.llvm.org/D10333 llvm-svn: 239409 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
coff2yaml.cpp | ||
elf2yaml.cpp | ||
Error.cpp | ||
Error.h | ||
Makefile | ||
obj2yaml.cpp | ||
obj2yaml.h |