summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-01 17:17:46 +0000
committerChris Lattner <sabre@nondot.org>2006-06-01 17:17:46 +0000
commit20a4da4dfdf6efd02e795bfda20127b7cc92fad3 (patch)
tree717265c9aa3f42d3519456b6d328da74a9457bfc
parent4442a70b3afbb39366235e858f4a84294841a760 (diff)
downloadbcm5719-llvm-20a4da4dfdf6efd02e795bfda20127b7cc92fad3.tar.gz
bcm5719-llvm-20a4da4dfdf6efd02e795bfda20127b7cc92fad3.zip
Fix -pedantic warning
llvm-svn: 28634
-rw-r--r--llvm/include/llvm/Analysis/CallGraph.h4
-rw-r--r--llvm/lib/Analysis/IPA/CallGraph.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Analysis/CallGraph.h b/llvm/include/llvm/Analysis/CallGraph.h
index 5602cec26ec..e51a3c7fb18 100644
--- a/llvm/include/llvm/Analysis/CallGraph.h
+++ b/llvm/include/llvm/Analysis/CallGraph.h
@@ -291,8 +291,8 @@ template<> struct GraphTraits<const CallGraph*> :
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/llvm/lib/Analysis/IPA/CallGraph.cpp b/llvm/lib/Analysis/IPA/CallGraph.cpp
index 71b303beca9..f8846d390a5 100644
--- a/llvm/lib/Analysis/IPA/CallGraph.cpp
+++ b/llvm/lib/Analysis/IPA/CallGraph.cpp
@@ -19,7 +19,7 @@
#include <iostream>
using namespace llvm;
-void llvm::BasicCallGraphStub() {}
+int llvm::BasicCallGraphStub;
static bool isOnlyADirectCall(Function *F, CallSite CS) {
if (!CS.getInstruction()) return false;
OpenPOWER on IntegriCloud