mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-04 18:38:37 +00:00
allow the GCCBuiltinName field to be optional
llvm-svn: 26784
This commit is contained in:
parent
77239958ce
commit
6c339fec5a
@ -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…
x
Reference in New Issue
Block a user