diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-11-07 19:38:25 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-11-07 19:38:25 +0000 |
commit | a7d131fb47711ed84210b81ce3280ef6270af0ab (patch) | |
tree | 57b9e05c816aa44e67a47de241bdea3daf71f3dd | |
parent | 0fbdb0ad4adf5b9dbac1f0f8dc66c1c1414d4e4f (diff) | |
download | llvm-a7d131fb47711ed84210b81ce3280ef6270af0ab.zip llvm-a7d131fb47711ed84210b81ce3280ef6270af0ab.tar.gz llvm-a7d131fb47711ed84210b81ce3280ef6270af0ab.tar.bz2 |
Merging r143712:llvmorg-3.0.0-rc3
------------------------------------------------------------------------
r143712 | efriedma | 2011-11-04 10:29:35 -0700 (Fri, 04 Nov 2011) | 3 lines
Add missing argument for atomic instructions in c++ backend. PR11268, part 2.
------------------------------------------------------------------------
llvm-svn: 143999
-rw-r--r-- | llvm/lib/Target/CppBackend/CPPBackend.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 17ca23a..394ea2b 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp @@ -1492,7 +1492,7 @@ void CppWriter::printInstruction(const Instruction *I, StringRef CrossThread = ConvertAtomicSynchScope(fi->getSynchScope()); Out << "FenceInst* " << iName << " = new FenceInst(mod->getContext(), " - << Ordering << ", " << CrossThread + << Ordering << ", " << CrossThread << ", " << bbname << ");"; break; } @@ -1503,7 +1503,7 @@ void CppWriter::printInstruction(const Instruction *I, Out << "AtomicCmpXchgInst* " << iName << " = new AtomicCmpXchgInst(" << opNames[0] << ", " << opNames[1] << ", " << opNames[2] << ", " - << Ordering << ", " << CrossThread + << Ordering << ", " << CrossThread << ", " << bbname << ");"; nl(Out) << iName << "->setName(\""; printEscapedString(cxi->getName()); @@ -1533,7 +1533,7 @@ void CppWriter::printInstruction(const Instruction *I, << " = new AtomicRMWInst(" << Operation << ", " << opNames[0] << ", " << opNames[1] << ", " - << Ordering << ", " << CrossThread + << Ordering << ", " << CrossThread << ", " << bbname << ");"; nl(Out) << iName << "->setName(\""; printEscapedString(rmwi->getName()); |