llvm-6502/lib/Object
Rafael Espindola 63cdf9f8da Don't check for null after calling COFFObjectFile::toSec.
It can only return null if passed a corrupted reference with a null Ref.p.
Checking for null is then an issue for asserts to check for internal
consistency, not control flow to check for invalid input.

I didn't add an assert(sec != nullptr) because toSec itself has a far more
complete assert.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219235 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-07 21:03:22 +00:00
..
Archive.cpp Don't own the buffer in object::Binary. 2014-08-19 18:44:46 +00:00
Binary.cpp unique_ptrify MachOUniversalBinary::create 2014-09-03 17:41:05 +00:00
CMakeLists.txt
COFFObjectFile.cpp Don't check for null after calling COFFObjectFile::toSec. 2014-10-07 21:03:22 +00:00
COFFYAML.cpp
ELF.cpp AArch64: add support for dynamic-loader relocations 2014-08-11 10:10:27 +00:00
ELFObjectFile.cpp Don't own the buffer in object::Binary. 2014-08-19 18:44:46 +00:00
ELFYAML.cpp
Error.cpp Converting object's error_category to a ManagedStatic to avoid static constructors and destructors. 2014-09-19 22:09:18 +00:00
IRObjectFile.cpp LTO: introduce object file-based on-disk module format. 2014-09-18 21:28:49 +00:00
LLVMBuild.txt
MachOObjectFile.cpp [Object] keep trailing '\0' out of StringRef when parsing mach-o bindings 2014-09-17 01:51:43 +00:00
MachOUniversal.cpp unique_ptrify MachOUniversalBinary::create 2014-09-03 17:41:05 +00:00
Makefile
Object.cpp Restore the ability to check if LLVMCreateObjectFile was successful 2014-09-05 21:22:09 +00:00
ObjectFile.cpp Don't own the buffer in object::Binary. 2014-08-19 18:44:46 +00:00
RecordStreamer.cpp
RecordStreamer.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
SymbolicFile.cpp LTO: introduce object file-based on-disk module format. 2014-09-18 21:28:49 +00:00