aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-11-13 10:18:35 +0000
committerBill Wendling <isanbard@gmail.com>2008-11-13 10:18:35 +0000
commit20072af3b0b22d90afbce769409f4ed822520366 (patch)
treed7d526dadf4d6902e23525fee2b0614885577cc0 /utils
parentcdcc3e6e12b8b4e224bd62c96768c5f5e325aace (diff)
downloadexternal_llvm-20072af3b0b22d90afbce769409f4ed822520366.zip
external_llvm-20072af3b0b22d90afbce769409f4ed822520366.tar.gz
external_llvm-20072af3b0b22d90afbce769409f4ed822520366.tar.bz2
Put comma in correct place for call to StructType::get
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59241 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/IntrinsicEmitter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/TableGen/IntrinsicEmitter.cpp b/utils/TableGen/IntrinsicEmitter.cpp
index 9247a85..9c4338e 100644
--- a/utils/TableGen/IntrinsicEmitter.cpp
+++ b/utils/TableGen/IntrinsicEmitter.cpp
@@ -152,10 +152,12 @@ static void EmitTypeGenerate(std::ostream &OS,
OS << "StructType::get(";
for (std::vector<Record*>::const_iterator
- I = ArgTypes.begin(), E = ArgTypes.end(); I != E; ++I)
+ I = ArgTypes.begin(), E = ArgTypes.end(); I != E; ++I) {
EmitTypeGenerate(OS, *I, ArgNo);
+ OS << ", ";
+ }
- OS << ", NULL)";
+ OS << " NULL)";
}
static void EmitTypeGenerate(std::ostream &OS, const Record *ArgType,