[llvm-commits] [llvm] r169225 - /llvm/trunk/unittests/VMCore/PassManagerTest.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Mon Dec 3 23:25:24 PST 2012
Author: chapuni
Date: Tue Dec 4 01:25:24 2012
New Revision: 169225
URL: http://llvm.org/viewvc/llvm-project?rev=169225&view=rev
Log:
VMCoreTests/PassManagerTest.cpp: Appease msvc not to do "using llvm::Pass" in class template.
FIXME: I have not checked whether to be compiled on msvc11.
Modified:
llvm/trunk/unittests/VMCore/PassManagerTest.cpp
Modified: llvm/trunk/unittests/VMCore/PassManagerTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/VMCore/PassManagerTest.cpp?rev=169225&r1=169224&r2=169225&view=diff
==============================================================================
--- llvm/trunk/unittests/VMCore/PassManagerTest.cpp (original)
+++ llvm/trunk/unittests/VMCore/PassManagerTest.cpp Tue Dec 4 01:25:24 2012
@@ -148,8 +148,10 @@
template<typename T, typename P>
struct PassTest : public PassTestBase<P> {
public:
+#ifndef _MSC_VER // MSVC complains that Pass is not base class.
using llvm::Pass::doInitialization;
using llvm::Pass::doFinalization;
+#endif
virtual bool doInitialization(T &t) {
EXPECT_FALSE(PassTestBase<P>::initialized);
PassTestBase<P>::initialized = true;
More information about the llvm-commits
mailing list