Skip to content

Commit

Permalink
Add a default constructor to AsmWriterOperand to make VS2008sp1 happy…
Browse files Browse the repository at this point in the history
…. (AsmWriterOperand is used in a std::pair, and VS need to generate the default constructor of this pair).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58185 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Stilgar84 committed Oct 26, 2008
1 parent aaf510c commit 3bff2df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/TableGen/AsmWriterEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ namespace llvm {
/// 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) {}

Expand Down

0 comments on commit 3bff2df

Please sign in to comment.