CppBackend: fixup for api change
authorDylan Noblesmith <nobled@dreamwidth.org>
Thu, 23 Jun 2011 12:11:37 +0000 (12:11 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Thu, 23 Jun 2011 12:11:37 +0000 (12:11 +0000)
This broke after r133364.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133709 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CppBackend/CPPBackend.cpp

index 0d15514d8cf84bcf21856e822a960fa87ce92f62..ae03725e4cf7e1c7f6c023999dd8c81704d2e9f9 100644 (file)
@@ -586,7 +586,6 @@ bool CppWriter::printTypeInternal(const Type* Ty) {
       nl(Out);
     }
     Out << "StructType* " << typeName << " = StructType::get("
-        << "mod->getContext(), "
         << typeName << "_fields, /*isPacked=*/"
         << (ST->isPacked() ? "true" : "false") << ");";
     nl(Out);