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 | 0e9acc94bc6bd2fdef0534b993b5a8fff70c6f77 (patch) | |
tree | ff5cb1f753ecf9443a388428671a800d7f90c244 /llvm/unittests | |
parent | 802d755533eb333b8850915ce09af1088a5f1672 (diff) | |
download | bcm5719-llvm-0e9acc94bc6bd2fdef0534b993b5a8fff70c6f77.tar.gz bcm5719-llvm-0e9acc94bc6bd2fdef0534b993b5a8fff70c6f77.zip |
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.
llvm-svn: 169225
Diffstat (limited to 'llvm/unittests')
-rw-r--r-- | llvm/unittests/VMCore/PassManagerTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/VMCore/PassManagerTest.cpp b/llvm/unittests/VMCore/PassManagerTest.cpp index 321904270af..b5015d16ce7 100644 --- a/llvm/unittests/VMCore/PassManagerTest.cpp +++ b/llvm/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; |