summaryrefslogtreecommitdiff
path: root/unittests/VMCore/PassManagerTest.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-12-04 07:25:24 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-12-04 07:25:24 +0000
commit4cd0a82fbf0b624bb5925b711204451c2734007e (patch)
tree5577480e9273bb4d5579060d0702e3c622789495 /unittests/VMCore/PassManagerTest.cpp
parenta1514e24cc24b050f53a12650e047799358833a1 (diff)
downloadllvm-4cd0a82fbf0b624bb5925b711204451c2734007e.tar.gz
llvm-4cd0a82fbf0b624bb5925b711204451c2734007e.tar.bz2
llvm-4cd0a82fbf0b624bb5925b711204451c2734007e.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169225 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/VMCore/PassManagerTest.cpp')
-rw-r--r--unittests/VMCore/PassManagerTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/VMCore/PassManagerTest.cpp b/unittests/VMCore/PassManagerTest.cpp
index 321904270a..b5015d16ce 100644
--- a/unittests/VMCore/PassManagerTest.cpp
+++ b/unittests/VMCore/PassManagerTest.cpp
@@ -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;