OSDN Git Service

Make the ELFFile constructor private.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 10 Oct 2017 22:17:49 +0000 (22:17 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 10 Oct 2017 22:17:49 +0000 (22:17 +0000)
commit4f80a5f9b0b21a106d5ffeb42371da7a292c0137
treeca1e7243055258359fe707bf6a66459bb5f4232b
parent2e192229994b016ad0c3e42d63b1e0fc4c4af88f
Make the ELFFile constructor private.

With this all clients have to use the new create method which returns
an Expected.

Fixes a crash on invalid input.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315376 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELF.h
include/llvm/Object/ELFObjectFile.h
test/Object/Inputs/invalid-buffer.elf [new file with mode: 0644]
test/Object/invalid.test