diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-06-01 07:02:51 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-06-01 07:02:51 +0000 |
commit | 192913e281a0e9b97275fa1b84da96b02397323e (patch) | |
tree | d3d93efb3824a5c7fe9e186b86da2fe322f02512 /include/llvm/Analysis/FindUsedTypes.h | |
parent | 177284ce8976d840e6093c6555dacc13f3ed0c4f (diff) | |
download | llvm-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 'include/llvm/Analysis/FindUsedTypes.h')
-rw-r--r-- | include/llvm/Analysis/FindUsedTypes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/FindUsedTypes.h b/include/llvm/Analysis/FindUsedTypes.h index 92f3677502..e16fe9d7c3 100644 --- a/include/llvm/Analysis/FindUsedTypes.h +++ b/include/llvm/Analysis/FindUsedTypes.h @@ -55,12 +55,12 @@ public: } // stub - dummy function, just ignore it - static void stub(); + static int stub; }; // Make sure that any clients of this file link in PostDominators.cpp static IncludeFile -FIND_USED_TYPES_INCLUDE_FILE((void*)(&FindUsedTypes::stub)); +FIND_USED_TYPES_INCLUDE_FILE(&FindUsedTypes::stub); } // End llvm namespace |