summaryrefslogtreecommitdiff
path: root/lib/Analysis/IPA/FindUsedTypes.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-06-01 07:02:51 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-06-01 07:02:51 +0000
commit192913e281a0e9b97275fa1b84da96b02397323e (patch)
treed3d93efb3824a5c7fe9e186b86da2fe322f02512 /lib/Analysis/IPA/FindUsedTypes.cpp
parent177284ce8976d840e6093c6555dacc13f3ed0c4f (diff)
downloadllvm-192913e281a0e9b97275fa1b84da96b02397323e.tar.gz
llvm-192913e281a0e9b97275fa1b84da96b02397323e.tar.bz2
llvm-192913e281a0e9b97275fa1b84da96b02397323e.tar.xz
Change from using a stub function to a stub variable for passing to the
IncludeFile hack to ensure linkage of analysis passes. This works around some -pedantic warnings about assigning an object to a function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/FindUsedTypes.cpp')
-rw-r--r--lib/Analysis/IPA/FindUsedTypes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/IPA/FindUsedTypes.cpp b/lib/Analysis/IPA/FindUsedTypes.cpp
index 09e14a87d4..f7efc7d3a4 100644
--- a/lib/Analysis/IPA/FindUsedTypes.cpp
+++ b/lib/Analysis/IPA/FindUsedTypes.cpp
@@ -25,7 +25,7 @@ static RegisterAnalysis<FindUsedTypes>
X("printusedtypes", "Find Used Types");
// stub to help linkage
-void FindUsedTypes::stub() {}
+int FindUsedTypes::stub; // to ensure linkage of this file
// IncorporateType - Incorporate one type and all of its subtypes into the
// collection of used types.