LLVM: lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

12

13#define DEBUG_TYPE "orc"

14

16

18

20 std::unique_ptr O) {

21 assert(O && "Object must not be null");

23

26 emit(std::move(R), std::move(*G), std::move(O));

27 } else {

28 R->getExecutionSession().reportError(G.takeError());

29 R->failMaterialization();

30 return;

31 }

32}

33

34}

assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")

ExecutionSession & getExecutionSession()

void emit(std::unique_ptr< MaterializationResponsibility > R, std::unique_ptr< MemoryBuffer > O) override

Emit an object file.

Definition ObjectLinkingLayer.cpp:19

LLVM_ABI Expected< std::unique_ptr< LinkGraph > > createLinkGraphFromObject(MemoryBufferRef ObjectBuffer, std::shared_ptr< orc::SymbolStringPool > SSP)

Create a LinkGraph from the given object buffer.