From: Nicolas Geoffray Date: Wed, 14 May 2008 07:52:03 +0000 (+0000) Subject: Fix typo in ParameterAttribute fields usage. Add an include X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9474ede38b7f991347c48b467397c88cbe99c163;p=oota-llvm.git Fix typo in ParameterAttribute fields usage. Add an include to make the Cpp backend output compilable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51095 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 2ba5fa66808..87240731b57 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -431,7 +431,7 @@ namespace { void CppWriter::printParamAttrs(const PAListPtr &PAL, const std::string &name) { - Out << "PAListPtr " << name << "_PAL = 0;"; + Out << "PAListPtr " << name << "_PAL;"; nl(Out); if (!PAL.isEmpty()) { Out << '{'; in(); nl(Out); @@ -440,7 +440,7 @@ namespace { for (unsigned i = 0; i < PAL.getNumSlots(); ++i) { uint16_t index = PAL.getSlot(i).Index; ParameterAttributes attrs = PAL.getSlot(i).Attrs; - Out << "PAWI.index = " << index << "; PAWI.attrs = 0 "; + Out << "PAWI.Index = " << index << "; PAWI.Attrs = 0 "; if (attrs & ParamAttr::SExt) Out << " | ParamAttr::SExt"; if (attrs & ParamAttr::ZExt) @@ -1745,6 +1745,7 @@ namespace { Out << "#include \n"; Out << "#include \n"; Out << "#include \n"; + Out << "#include \n"; Out << "#include \n"; Out << "#include \n"; Out << "#include \n";