LLVM: lib/ObjCopy/XCOFF/XCOFFObjcopy.cpp Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
15
16namespace llvm {
19
20using namespace object;
21
25
30 if (!ObjOrErr)
33 assert(Obj && "Unable to deserialize XCOFF object");
40}
41
42}
43}
44}
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
Tagged union holding either a T or a Error.
Error takeError()
Take ownership of the stored error.
reference get()
Returns a reference to the stored T value.
Expected< std::unique_ptr< Object > > create() const
This class implements an extremely fast bulk output stream that can only output to a stream.
Error executeObjcopyOnBinary(const CommonConfig &Config, const XCOFFConfig &, object::XCOFFObjectFile &In, raw_ostream &Out)
Apply the transformations described by Config and XCOFFConfig to In and writes the result into Out.
Definition XCOFFObjcopy.cpp:26
static Error handleArgs(const CommonConfig &Config, Object &Obj)
Definition XCOFFObjcopy.cpp:22
This is an optimization pass for GlobalISel generic memory operations.
Error createFileError(const Twine &F, Error E)
Concatenate a source file path and/or name with an Error.