mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
revert this, it breaks things.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27196 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0876f1c6a6
commit
76f8c7c4cc
@ -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…
x
Reference in New Issue
Block a user