summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CppBackend/CPPBackend.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-11-04 17:29:35 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-11-04 17:29:35 +0000
commit5b693c2fa695edcf03c2d6236d7ab4c2e0269c7f (patch)
tree877cbcb0738cbe33ba3c41c81d62addef808d98c /llvm/lib/Target/CppBackend/CPPBackend.cpp
parent755c73f1e128899371cd2bb69f3b5a9cd772a971 (diff)
downloadbcm5719-llvm-5b693c2fa695edcf03c2d6236d7ab4c2e0269c7f.tar.gz
bcm5719-llvm-5b693c2fa695edcf03c2d6236d7ab4c2e0269c7f.zip
Add missing argument for atomic instructions in c++ backend. PR11268, part 2.
llvm-svn: 143712
Diffstat (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r--llvm/lib/Target/CppBackend/CPPBackend.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp
index 17ca23a4536..394ea2bfea0 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());
OpenPOWER on IntegriCloud