History log of /llvm-project/llvm/lib/Object/Error.cpp (Results 26 – 43 of 43)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 074da9b5 04-Jun-2015 Alexey Samsonov <vonosmas@gmail.com>

[Object, MachO] Don't crash on invalid MachO segment load commands.

Summary:
Properly report the error in segment load commands from MachOObjectFile
constructor instead of crashing the program.

Adj

[Object, MachO] Don't crash on invalid MachO segment load commands.

Summary:
Properly report the error in segment load commands from MachOObjectFile
constructor instead of crashing the program.

Adjust the test case accordingly.

Test Plan: regression test suite

Reviewers: rafael, filcab

Subscribers: llvm-commits
llvm-svn: 239081

show more ...


# de5a94a6 04-Jun-2015 Alexey Samsonov <vonosmas@gmail.com>

[Object, MachO] Don't crash on invalid MachO load commands.

Summary:
Currently all load commands are parsed in MachOObjectFile constructor.
If the next load command cannot be parsed, or if command s

[Object, MachO] Don't crash on invalid MachO load commands.

Summary:
Currently all load commands are parsed in MachOObjectFile constructor.
If the next load command cannot be parsed, or if command size is too
small, properly report it through the error code and fail to construct
the object, instead of crashing the program.

Test Plan: regression test suite

Reviewers: rafael, filcab

Subscribers: llvm-commits
llvm-svn: 239080

show more ...


Revision tags: llvmorg-3.6.1, llvmorg-3.6.1-rc1, llvmorg-3.5.2, llvmorg-3.5.2-rc1, llvmorg-3.6.0, llvmorg-3.6.0-rc4, llvmorg-3.6.0-rc3, llvmorg-3.6.0-rc2, llvmorg-3.6.0-rc1, llvmorg-3.5.1, llvmorg-3.5.1-rc2, llvmorg-3.5.1-rc1
# 684981e4 19-Sep-2014 Chris Bieneman <beanz@apple.com>

Converting object's error_category to a ManagedStatic to avoid static constructors and destructors.

llvm-svn: 218160


# 10039c02 18-Sep-2014 Peter Collingbourne <peter@pcc.me.uk>

LTO: introduce object file-based on-disk module format.

This format is simply a regular object file with the bitcode stored in a
section named ".llvmbc", plus any number of other (non-allocated) sec

LTO: introduce object file-based on-disk module format.

This format is simply a regular object file with the bitcode stored in a
section named ".llvmbc", plus any number of other (non-allocated) sections.

One immediate use case for this is to accommodate compilation processes
which expect the object file to contain metadata in non-allocated sections,
such as the ".go_export" section used by some Go compilers [1], although I
imagine that in the future we could consider compiling parts of the module
(such as large non-inlinable functions) directly into the object file to
improve LTO efficiency.

[1] http://golang.org/doc/install/gccgo#Imports

Differential Revision: http://reviews.llvm.org/D4371

llvm-svn: 218078

show more ...


Revision tags: llvmorg-3.5.0, llvmorg-3.5.0-rc4, llvmorg-3.5.0-rc3
# 9c2f73ed 18-Aug-2014 Abramo Bagnara <abramo.bagnara@bugseng.com>

Added forgotten noexcept.

llvm-svn: 215886


Revision tags: llvmorg-3.5.0-rc2, llvmorg-3.5.0-rc1
# 54f19979 13-Jun-2014 Rafael Espindola <rafael.espindola@gmail.com>

Remove unused and odd code.

This code was never being used and any use of it would look fairly strange.
For example, it would try to map a object_error::parse_failed to
std::errc::invalid_argument.

Remove unused and odd code.

This code was never being used and any use of it would look fairly strange.
For example, it would try to map a object_error::parse_failed to
std::errc::invalid_argument.

llvm-svn: 210912

show more ...


# 25188c95 12-Jun-2014 Rafael Espindola <rafael.espindola@gmail.com>

Don't import error_category into the llvm namespace.

llvm-svn: 210733


# acc5d7c9 12-Jun-2014 Rafael Espindola <rafael.espindola@gmail.com>

Don't import error_condition into the llvm namespace.

llvm-svn: 210731


# 5c4f8294 11-Jun-2014 Rafael Espindola <rafael.espindola@gmail.com>

Use std::error_code instead of llvm::error_code.

The idea of this patch is to turn llvm/Support/system_error.h into a
transitional header that just brings in the erorr_code api to the llvm
namespace

Use std::error_code instead of llvm::error_code.

The idea of this patch is to turn llvm/Support/system_error.h into a
transitional header that just brings in the erorr_code api to the llvm
namespace. I will remove it shortly afterwards.

The cases where the general idea needed some tweaking:

* std::errc is a namespace in msvc, so we cannot use "using std::errc". I could
add an #ifdef, but there were not that many uses, so I just added std:: to
them in this patch.

* Template specialization had to be moved to the std namespace in this
patch set already.

* The msvc implementation of default_error_condition doesn't seem to
provide the same transformations as we need. Not too surprising since
the standard doesn't actually say what "equivalent" means. I fixed the
problem by keeping our old mapping and using it at error_code
construction time.

Despite these shortcomings I think this is still a good thing. Some reasons:

* The different implementations of system_error might improve over time.
* It removes 925 lines of code from llvm already.
* It removes 6313 bytes from the text segment of the clang binary when
it is built with gcc and 2816 bytes when building with clang and
libstdc++.

llvm-svn: 210687

show more ...


# f5d07fa5 10-Jun-2014 Rafael Espindola <rafael.espindola@gmail.com>

Mark a few functions noexcept.

This reduces the difference between std::error_code and llvm::error_code.

llvm-svn: 210591


# e00fec8f 03-Jun-2014 Rafael Espindola <rafael.espindola@gmail.com>

Use an enum class.

llvm-svn: 210078


# a3f2e3f0 31-May-2014 Rafael Espindola <rafael.espindola@gmail.com>

There is no std::errc::success, remove the llvm one.

llvm-svn: 209960


Revision tags: llvmorg-3.4.2, llvmorg-3.4.2-rc1, llvmorg-3.4.1, llvmorg-3.4.1-rc2, llvmorg-3.4.1-rc1
# e3bfdc4e 15-Mar-2014 Justin Bogner <mail@justinbogner.com>

Support: Make error_category's constructor public

Since our error_category is based on the std one, we should have the
same visibility for the constructor. This also allows us to avoid
using the _d

Support: Make error_category's constructor public

Since our error_category is based on the std one, we should have the
same visibility for the constructor. This also allows us to avoid
using the _do_message implementation detail in our own categories.

llvm-svn: 203998

show more ...


Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3, llvmorg-3.4.0-rc2, llvmorg-3.4.0-rc1, llvmorg-3.3.1-rc1
# e6388e62 18-Jun-2013 Alexey Samsonov <samsonov@google.com>

Basic support for parsing Mach-O universal binaries in LLVMObject library

llvm-svn: 184191


# e107ade3 18-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com>

Don't convert object_error's enum to and from int.

This allows the compiler to see the enum and warn about it. While in here,
fix a switch to not use a default and fix style violations.

llvm-svn: 1

Don't convert object_error's enum to and from int.

This allows the compiler to see the enum and warn about it. While in here,
fix a switch to not use a default and fix style violations.

llvm-svn: 184186

show more ...


Revision tags: llvmorg-3.3.0, llvmorg-3.3.0-rc3, llvmorg-3.3.0-rc2, llvmorg-3.3.0-rc1, llvmorg-3.2.0, llvmorg-3.2.0-rc3, llvmorg-3.2.0-rc2, llvmorg-3.2.0-rc1, llvmorg-3.1.0, llvmorg-3.1.0-rc3, llvmorg-3.1.0-rc2, llvmorg-3.1.0-rc1, llvmorg-3.0.0, llvmorg-3.0.0-rc4, llvmorg-3.0.0-rc3, llvmorg-3.0.0-rc2, llvmorg-3.0.0-rc1
# 1d6167fd 25-Jun-2011 Michael J. Spencer <bigcheesegs@gmail.com>

Object: Add proper error handling.

llvm-svn: 133872


# e4446923 25-Jun-2011 Michael J. Spencer <bigcheesegs@gmail.com>

Add Object/Error.

llvm-svn: 133868


# 0901cec0 13-Jun-2011 Michael J. Spencer <bigcheesegs@gmail.com>

Add Object/Error.

llvm-svn: 132909


12