llvm-6502/include/llvm/Object
Rui Ueyama eae4673c2f Remove object_error::success and use std::error_code() instead
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



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239409 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-09 15:20:42 +00:00
..
Archive.h Object: Add Archive::getNumberOfSymbols(). 2015-05-26 16:20:40 +00:00
ArchiveWriter.h llvm-ar: Move archive writer to Object. 2015-06-08 02:32:01 +00:00
Binary.h Removing LLVM_DELETED_FUNCTION, as MSVC 2012 was the last reason for requiring the macro. NFC; LLVM edition. 2015-02-15 22:54:22 +00:00
COFF.h Remove object_error::success and use std::error_code() instead 2015-06-09 15:20:42 +00:00
COFFYAML.h obj2yaml, yaml2obj: Add support for COFF executables 2014-11-14 08:15:42 +00:00
ELF.h Revert "[Object, ELF] Fix segmentation fault in ELFFile::getSectionName()." 2015-06-04 23:58:31 +00:00
ELFObjectFile.h Remove object_error::success and use std::error_code() instead 2015-06-09 15:20:42 +00:00
ELFTypes.h [Object/ELF] Don't confuse isDefined() and isCommon. 2015-06-07 02:45:19 +00:00
ELFYAML.h [obj2yaml/yaml2obj] Add SHT_MIPS_ABIFLAGS section support 2015-05-07 15:40:48 +00:00
Error.h Remove object_error::success and use std::error_code() instead 2015-06-09 15:20:42 +00:00
IRObjectFile.h Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:11:45 +00:00
MachO.h Remove object_error::success and use std::error_code() instead 2015-06-09 15:20:42 +00:00
MachOUniversal.h [llvm-readobj] add support for macho universal binary. 2015-03-24 20:26:55 +00:00
ObjectFile.h Remove object_error::success and use std::error_code() instead 2015-06-09 15:20:42 +00:00
RelocVisitor.h Add RelocVisitor support for MachO 2015-05-30 19:44:53 +00:00
SymbolicFile.h [Object] Teach Object and llvm-objdump about ".hidden" 2015-04-30 23:08:53 +00:00