diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-12-04 07:25:24 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-12-04 07:25:24 +0000 |
commit | 4cd0a82fbf0b624bb5925b711204451c2734007e (patch) | |
tree | 5577480e9273bb4d5579060d0702e3c622789495 /unittests | |
parent | a1514e24cc24b050f53a12650e047799358833a1 (diff) | |
download | external_llvm-4cd0a82fbf0b624bb5925b711204451c2734007e.zip external_llvm-4cd0a82fbf0b624bb5925b711204451c2734007e.tar.gz external_llvm-4cd0a82fbf0b624bb5925b711204451c2734007e.tar.bz2 |
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')
-rw-r--r-- | unittests/VMCore/PassManagerTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/VMCore/PassManagerTest.cpp b/unittests/VMCore/PassManagerTest.cpp index 3219042..b5015d1 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; |