HomePhabricator

[COFF] Migrate COFFObjectFile to Expected<T>

Authored by rnk on Fri, May 8, 10:41 AM.

Description

[COFF] Migrate COFFObjectFile to Expected<T>

I noticed that std::error_code() does one-time initialization. Avoid
that overhead with Expected<T> and llvm::Error. Also, it is consistent
with the virtual interface and ELF, and generally cleaner.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D79643

Details

Committed
rnkFri, May 8, 2:01 PM
Reviewer
MaskRay
Differential Revision
D79643: [COFF] Migrate COFFObjectFile to Expected<T>
Parents
rGebb69b8bafad: [clang][WebAssembly] Only expose wait and notify builtins with atomics
Branches
Unknown
Tags
Unknown