[llvm-commits] [llvm] r58185 - /llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
Cedric Venet
cedric.venet at laposte.net
Sun Oct 26 08:40:46 PDT 2008
Author: venet
Date: Sun Oct 26 10:40:44 2008
New Revision: 58185
URL: http://llvm.org/viewvc/llvm-project?rev=58185&view=rev
Log:
Add a default constructor to AsmWriterOperand to make VS2008sp1 happy. (AsmWriterOperand is used in a std::pair, and VS need to generate the default constructor of this pair).
Modified:
llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp?rev=58185&r1=58184&r2=58185&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp Sun Oct 26 10:40:44 2008
@@ -45,6 +45,9 @@
/// an operand, specified with syntax like ${opname:modifier}.
std::string MiModifier;
+ // To make VS STL happy
+ AsmWriterOperand():OperandType(isLiteralTextOperand) {}
+
AsmWriterOperand(const std::string &LitStr)
: OperandType(isLiteralTextOperand), Str(LitStr) {}
More information about the llvm-commits
mailing list