From: Chris Lattner Date: Thu, 1 Jun 2006 17:17:46 +0000 (+0000) Subject: Fix -pedantic warning X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=080e25d884d9b9499b3e5330f42847fbb8db8232;p=oota-llvm.git Fix -pedantic warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28634 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h index 5602cec26ec..e51a3c7fb18 100644 --- a/include/llvm/Analysis/CallGraph.h +++ b/include/llvm/Analysis/CallGraph.h @@ -291,8 +291,8 @@ template<> struct GraphTraits : static IncludeFile CALLGRAPH_INCLUDE_FILE(&CallGraph::stub); -extern void BasicCallGraphStub(); -static IncludeFile HDR_INCLUDE_CALLGRAPH_CPP((void*)&BasicCallGraphStub); +extern int BasicCallGraphStub; +static IncludeFile HDR_INCLUDE_CALLGRAPH_CPP(&BasicCallGraphStub); } // End llvm namespace diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp index 71b303beca9..f8846d390a5 100644 --- a/lib/Analysis/IPA/CallGraph.cpp +++ b/lib/Analysis/IPA/CallGraph.cpp @@ -19,7 +19,7 @@ #include using namespace llvm; -void llvm::BasicCallGraphStub() {} +int llvm::BasicCallGraphStub; static bool isOnlyADirectCall(Function *F, CallSite CS) { if (!CS.getInstruction()) return false;