VMCoreTests/PassManagerTest.cpp: Appease msvc not to do "using llvm::Pass" in class...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 4 Dec 2012 07:25:24 +0000 (07:25 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 4 Dec 2012 07:25:24 +0000 (07:25 +0000)
FIXME: I have not checked whether to be compiled on msvc11.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169225 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/VMCore/PassManagerTest.cpp

index 321904270af96ec1f63affc2f8f6fa2050588353..b5015d16ce7eff6d2974170427a0fbef58961010 100644 (file)
@@ -148,8 +148,10 @@ namespace llvm {
     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;