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:
parent
1e517cbb0c
commit
8a2ffaea1d
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user