From 58ed24d13dd43b5575e02f870372e3a494b450ed Mon Sep 17 00:00:00 2001
From: akashk4 <akashk4@illinois.edu>
Date: Wed, 8 Jan 2020 18:15:15 -0600
Subject: [PATCH] Fixed types for function declarations to FunctionCallee

---
 hpvm/include/SupportVISC/DFG2LLVM.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/hpvm/include/SupportVISC/DFG2LLVM.h b/hpvm/include/SupportVISC/DFG2LLVM.h
index a2d17801ff..bf250dd5d3 100644
--- a/hpvm/include/SupportVISC/DFG2LLVM.h
+++ b/hpvm/include/SupportVISC/DFG2LLVM.h
@@ -27,7 +27,7 @@ using namespace builddfg;
 #define TIMER(X) do { if (VISCTimer) { X; } } while (0)
 #define DECLARE(X) X = M.getOrInsertFunction(#X, \
     runtimeModule->getFunction(#X)->getFunctionType()); \
-    DEBUG(errs() << *X)
+    //DEBUG(errs() << *X)
 
 namespace dfg2llvm {
 // Helper Functions
@@ -76,9 +76,9 @@ protected:
   // VISC Runtime API
   std::unique_ptr<Module> runtimeModule;
 
-  Constant* llvm_visc_initializeTimerSet;
-  Constant* llvm_visc_switchToTimer;
-  Constant* llvm_visc_printTimerSet;
+  FunctionCallee llvm_visc_initializeTimerSet;
+  FunctionCallee llvm_visc_switchToTimer;
+  FunctionCallee llvm_visc_printTimerSet;
   GlobalVariable* TimerSet;
   GlobalVariable* GraphIDAddr;
   Instruction* InitCall;
-- 
GitLab