diff options
author | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2008-05-14 07:52:03 +0000 |
---|---|---|
committer | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2008-05-14 07:52:03 +0000 |
commit | 58744b07cc69f04baa05d0dc98feb6605e7e8ffb (patch) | |
tree | 79421af968878f365f2fe527370331d82feca2f5 | |
parent | 31c64c206aef1babb8730eaea167f3ea2daf38ff (diff) | |
download | external_llvm-58744b07cc69f04baa05d0dc98feb6605e7e8ffb.zip external_llvm-58744b07cc69f04baa05d0dc98feb6605e7e8ffb.tar.gz external_llvm-58744b07cc69f04baa05d0dc98feb6605e7e8ffb.tar.bz2 |
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
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 2ba5fa6..8724073 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 <llvm/Support/MathExtras.h>\n"; Out << "#include <llvm/Pass.h>\n"; Out << "#include <llvm/PassManager.h>\n"; + Out << "#include <llvm/ADT/SmallVector.h>\n"; Out << "#include <llvm/Analysis/Verifier.h>\n"; Out << "#include <llvm/Assembly/PrintModulePass.h>\n"; Out << "#include <algorithm>\n"; |