Displaying 3 results from an estimated 3 matches for "vikasbhargava".
2014 Feb 27
2
[LLVMdev] multithreaded use of llvm::sys::RemoveFileOnSignal
Hi,
I am using clang::ToolInvocation class to compile some code in-memory:
clang::tooling::ToolInvocation ti
(
compilerArgs,
new clang::EmitBCAction(),
new clang::FileManager(clang::FileSystemOptions())
);
//filename is the name of the source file, e.g. "Somefile.cpp"
//sourcecode contains the source of the file
ti.mapVirtualFile( filename,
2013 Nov 21
1
[LLVMdev] Replacing C-style function
Hi,
I am trying to replace a c-style function with another function with same
signature. Consider the following code:
std::stringstream main_c;
main_c
<<"#include <stdio.h>\n"
<<"extern \"C\" { \n"
<<"int print1()\n"
<<"{\n"
<<" printf(\"Inside
2014 Mar 20
2
[LLVMdev] load bytecode from string for jiting problem
Hello Willy,
Here is the dump from one of my bitcode files:
0000000 42 43 c0 de 21 0c 00 00 25 05 00 00 0b 82 20 00
As expected, 0x42 (= B), 0x43 (= C), xc0 and 0xde are in correct order. In
your case, the first byte is read as 37 (= 0x25). I wonder why? When you
check the bytes yourself, you get expected results. When the same bytes are
read from Stream object, you get a different result (maybe