diff options
| author | Owen Anderson <resistor@mac.com> | 2009-08-05 23:16:16 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-08-05 23:16:16 +0000 |
| commit | 03cb69fbd1ef003f94710f2d497515692ff5445a (patch) | |
| tree | 09edb1b4c08827055064fa639d024649076349d7 /llvm/utils | |
| parent | e148ceaf65e3704935b8bf0fdc0c7f44283acf6c (diff) | |
| download | bcm5719-llvm-03cb69fbd1ef003f94710f2d497515692ff5445a.tar.gz bcm5719-llvm-03cb69fbd1ef003f94710f2d497515692ff5445a.zip | |
Privatize the StructType table, which unfortunately involves routing contexts through a number of APIs.
llvm-svn: 78258
Diffstat (limited to 'llvm/utils')
| -rw-r--r-- | llvm/utils/TableGen/IntrinsicEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/IntrinsicEmitter.cpp b/llvm/utils/TableGen/IntrinsicEmitter.cpp index d1e9b03b8c7..502aee64348 100644 --- a/llvm/utils/TableGen/IntrinsicEmitter.cpp +++ b/llvm/utils/TableGen/IntrinsicEmitter.cpp @@ -146,7 +146,7 @@ static void EmitTypeForValueType(raw_ostream &OS, MVT::SimpleValueType VT) { OS << "IntegerType::get(" << BitWidth << ")"; } else if (VT == MVT::Other) { // MVT::OtherVT is used to mean the empty struct type here. - OS << "StructType::get()"; + OS << "StructType::get(Context)"; } else if (VT == MVT::f32) { OS << "Type::FloatTy"; } else if (VT == MVT::f64) { @@ -177,7 +177,7 @@ static void EmitTypeGenerate(raw_ostream &OS, return; } - OS << "StructType::get("; + OS << "StructType::get(Context, "; for (std::vector<Record*>::const_iterator I = ArgTypes.begin(), E = ArgTypes.end(); I != E; ++I) { |

