diff options
-rw-r--r-- | utils/TableGen/CodeGenIntrinsics.h | 2 | ||||
-rw-r--r-- | utils/TableGen/CodeGenTarget.cpp | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/utils/TableGen/CodeGenIntrinsics.h b/utils/TableGen/CodeGenIntrinsics.h index f779ad31ce..f986ed1995 100644 --- a/utils/TableGen/CodeGenIntrinsics.h +++ b/utils/TableGen/CodeGenIntrinsics.h @@ -46,7 +46,7 @@ namespace llvm { NoMem, ReadArgMem, ReadMem, WriteArgMem, WriteMem } ModRef; - CodeGenIntrinsic(Record *R, CodeGenTarget &CGT); + CodeGenIntrinsic(Record *R, CodeGenTarget *CGT); }; /// LoadIntrinsics - Read all of the intrinsics defined in the specified diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp index 6bee477f31..e8c133578f 100644 --- a/utils/TableGen/CodeGenTarget.cpp +++ b/utils/TableGen/CodeGenTarget.cpp @@ -362,13 +362,12 @@ std::vector<CodeGenIntrinsic> llvm::LoadIntrinsics(const RecordKeeper &RC) { std::vector<Record*> I = RC.getAllDerivedDefinitions("Intrinsic"); std::vector<CodeGenIntrinsic> Result; - CodeGenTarget CGT; for (unsigned i = 0, e = I.size(); i != e; ++i) - Result.push_back(CodeGenIntrinsic(I[i], CGT)); + Result.push_back(CodeGenIntrinsic(I[i], 0)); return Result; } -CodeGenIntrinsic::CodeGenIntrinsic(Record *R, CodeGenTarget &CGT) { +CodeGenIntrinsic::CodeGenIntrinsic(Record *R, CodeGenTarget *CGT) { TheDef = R; std::string DefName = R->getName(); ModRef = WriteMem; @@ -415,7 +414,7 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R, CodeGenTarget &CGT) { assert(TyEl->isSubClassOf("LLVMType") && "Expected a type!"); ArgTypes.push_back(TyEl->getValueAsString("TypeVal")); - ArgVTs.push_back(getValueType(TyEl->getValueAsDef("VT"), &CGT)); + ArgVTs.push_back(getValueType(TyEl->getValueAsDef("VT"), 0)); ArgTypeDefs.push_back(TyEl); } if (ArgTypes.size() == 0) |