diff options
author | Owen Anderson <resistor@mac.com> | 2010-08-06 18:33:48 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-08-06 18:33:48 +0000 |
commit | a7aed18624f7783b7c31b06069c43bec89f1813f (patch) | |
tree | 12c29122999e559e3d99f19d576e0245874372f3 /llvm/lib/VMCore/PassRegistry.cpp | |
parent | e68958fcdfb02296df153598c1610cefd915d51e (diff) | |
download | bcm5719-llvm-a7aed18624f7783b7c31b06069c43bec89f1813f.tar.gz bcm5719-llvm-a7aed18624f7783b7c31b06069c43bec89f1813f.zip |
Reapply r110396, with fixes to appease the Linux buildbot gods.
llvm-svn: 110460
Diffstat (limited to 'llvm/lib/VMCore/PassRegistry.cpp')
-rw-r--r-- | llvm/lib/VMCore/PassRegistry.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/PassRegistry.cpp b/llvm/lib/VMCore/PassRegistry.cpp index 844d82660b4..21dba56aad7 100644 --- a/llvm/lib/VMCore/PassRegistry.cpp +++ b/llvm/lib/VMCore/PassRegistry.cpp @@ -60,7 +60,7 @@ ManagedCleanup<&cleanupPassRegistry> registryCleanup ATTRIBUTE_USED; } -const PassInfo *PassRegistry::getPassInfo(intptr_t TI) const { +const PassInfo *PassRegistry::getPassInfo(const void *TI) const { sys::SmartScopedLock<true> Guard(Lock); MapType::const_iterator I = PassInfoMap.find(TI); return I != PassInfoMap.end() ? I->second : 0; @@ -108,8 +108,8 @@ void PassRegistry::enumerateWith(PassRegistrationListener *L) { /// Analysis Group Mechanisms. -void PassRegistry::registerAnalysisGroup(intptr_t InterfaceID, - intptr_t PassID, +void PassRegistry::registerAnalysisGroup(const void *InterfaceID, + const void *PassID, PassInfo& Registeree, bool isDefault) { PassInfo *InterfaceInfo = const_cast<PassInfo*>(getPassInfo(InterfaceID)); |