mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
allow the GCCBuiltinName field to be optional
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26784 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3d11beeadd
commit
0da3130a98
@ -34,7 +34,8 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R) {
|
||||
std::string(DefName.begin(), DefName.begin()+4) != "int_")
|
||||
throw "Intrinsic '" + DefName + "' does not start with 'int_'!";
|
||||
EnumName = std::string(DefName.begin()+4, DefName.end());
|
||||
GCCBuiltinName = R->getValueAsString("GCCBuiltinName");
|
||||
if (R->getValue("GCCBuiltinName")) // Ignore a missing GCCBuiltinName field.
|
||||
GCCBuiltinName = R->getValueAsString("GCCBuiltinName");
|
||||
TargetPrefix = R->getValueAsString("TargetPrefix");
|
||||
Name = R->getValueAsString("LLVMName");
|
||||
if (Name == "") {
|
||||
|
Loading…
Reference in New Issue
Block a user