title: How to get gettimeofday (llvm::Function* ) with call & bitcast?
body: <pre><code>89   %14 = call i32 (%struct.timeval*, i8*, ...) bitcast (i32 (...)* @gettimeofday to i32 (%struct.timeval*, i8*, ...)*)(%struct.timeval* %11, i8* null)
  </code></pre>
  
  <p>I want to get value (Function*) of gettimeofday.</p>
  
  <p>This is what I try to do. But it does not work.</p>
  
  <p>Value* opnd = CurrentInst->getOperand(CurrentInst->getNumOperands() -1);</p>
  
  <p>How to get calledFunction ?</p>