Displaying 1 result from an estimated 1 matches for "llvm_ld_flag".
Did you mean:
llvm_ld_flags
2012 Dec 27
1
[LLVMdev] Throwing an exception from JITed code, and catching in C++
...ion\n");
return 1;
}
try
{
throwsInt();
}
catch (int ex)
{
printf("caught an int\n");
}
}
$ cat Makefile ################
LLVM_CXX_FLAGS=$(shell $(LLVM_BIN)/llvm-config --cxxflags)
LLVM_LIBS=$(shell $(LLVM_BIN)/llvm-config --libs)
LLVM_LD_FLAGS=$(shell $(LLVM_BIN)/llvm-config --ldflags)
all : tested
.PHONY: clean
clean:
rm thrower.s thrower.s.bc catcher tested
thrower.s : thrower.cpp Makefile
$(LLVM_BIN)/clang -S -emit-llvm thrower.cpp
thrower.s.bc : thrower.s Makefile
$(LLVM_BIN)/llvm-as thrower.s
catcher : catcher.cpp...