[llvm] r345059 - Fix MSVC build by correcting placement of declspec after r345056
Daniel Sanders via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 23 10:41:39 PDT 2018
Author: dsanders
Date: Tue Oct 23 10:41:39 2018
New Revision: 345059
URL: http://llvm.org/viewvc/llvm-project?rev=345059&view=rev
Log:
Fix MSVC build by correcting placement of declspec after r345056
Going by the MSVC toolchains at godbolt.org, declspec comes after the template<...>.
Modified:
llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
Modified: llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp?rev=345059&r1=345058&r2=345059&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp Tue Oct 23 10:41:39 2018
@@ -2083,10 +2083,10 @@ static void emitFieldFromInstruction(for
<< "// * Support shift (<<, >>) with signed and unsigned integers on the "
"RHS\n"
<< "// * Support put (<<) to raw_ostream&\n"
+ << "template<typename InsnType>\n"
<< "#if defined(_MSC_VER) && !defined(__clang__)\n"
<< "__declspec(noinline)\n"
<< "#endif\n"
- << "template<typename InsnType>\n"
<< "static InsnType fieldFromInstruction(InsnType insn, unsigned "
"startBit,\n"
<< " unsigned numBits, "
More information about the llvm-commits
mailing list