1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

revert this, it breaks things.

llvm-svn: 27196
This commit is contained in:
Chris Lattner 2006-03-28 00:03:08 +00:00
parent 1e517cbb0c
commit 8a2ffaea1d
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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)