Displaying 4 results from an estimated 4 matches for "globalvaraibles".
Did you mean:
globalvaraible
2004 Oct 13
1
[LLVMdev] creating Internal GlobalVaraibles
Here is my code, (GV is a GlobalVariable*):
GV = new GlobalVariable(AI->getType(), false, GlobalValue::InternalLinkage,
0, "temp_glob", &M);
I tell it to make it with internal linkage, but when I run the pass it makes
them external:
%temp_glob = external global [10 x int]* ; <[10 x int]**>
[#uses=2]
%temp_glob = external global [10 x float]* ;
2009 Jan 12
2
[LLVMdev] GlobalVaraible and Function have the same name
Hi all,
I just walked across an interesting situation in
Module::getOrInsertFunction(Name, Type) in the LLVM C API.
In my particular case:
One of the first things we do is add a global variable named foo which
is a [ 100 x i64 ].
Later we add a function void foo(...)
unfortunately, when we do the getOrInsertFunction we get back
void (...) * bitcast ([100 x i64]* @foo_ to void (...)*)
2004 Oct 10
1
[LLVMdev] Re: Hide visible string in variable
Hi,
> On Mon, 27 Sep 2004, Zhang Qiuyu wrote:
>
> > Is there a way to modify the string such as char a or char b? Could I
> > use the way like "Replace an instruction with another Value" in Programm
> > Manual? In fact, what I am interested in is string with visible
> > expression, not all string, and I am trying to hide the orignal string
> > by
2004 Oct 12
1
[LLVMdev] Re: Hide visible string in variable (Chris Lattner)
Hi,
Thanks so much at first.
> Here are some observations:
>
> > for C level,
> >
> > char a[]="global string test";
> > for(i=0;i<strlen(a);i++){
> > a[i]= a[i]^RANDMON;
> > }
>
> If you compile this C code, "global string test" will occur in the program
> binary, so you have not obfuscated anything. You can