Displaying 1 result from an estimated 1 matches for "get_randkey".
2004 Oct 19
1
[LLVMdev] Re:question about Insert callInst to call a function in library
...w the decode part is llvm pass, could I do it like what I want? Thanks
Qiuyu
decode pass:
using namespace llvm;
#define endl "\n"
namespace {
struct DecodeStr : public FunctionPass{
virtual bool runOnFunction(Function &F);
private:
void DecodeString(Module *M);
void get_randKey(Module *M);
Constant *randKey;
};
RegisterOpt<DecodeStr> X("DecodeStr", "Decode to visible string");
}
bool DecodeStr::runOnFunction(Function &F){
get_randKey(F.getParent());
DecodeString(F.getParent());
return true;
}
void DecodeStr::get_randKey(Modu...