Changes in directory llvm/utils/TableGen:

IntrinsicEmitter.cpp updated: 1.13 -> 1.14
---
Log message:

allow the GCCBuiltinName field to be optional


---
Diffs of the changes:  (+2 -1)

 IntrinsicEmitter.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/utils/TableGen/IntrinsicEmitter.cpp
diff -u llvm/utils/TableGen/IntrinsicEmitter.cpp:1.13 
llvm/utils/TableGen/IntrinsicEmitter.cpp:1.14
--- llvm/utils/TableGen/IntrinsicEmitter.cpp:1.13       Tue Mar 14 20:51:05 2006
+++ llvm/utils/TableGen/IntrinsicEmitter.cpp    Wed Mar 15 13:15:26 2006
@@ -34,7 +34,8 @@
       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 == "") {



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to