[llvm-commits] CVS: llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Mar 12 18:24:46 PST 2004


Changes in directory llvm/lib/Target/SparcV9/InstrSelection:

InstrSelection.cpp updated: 1.69 -> 1.70

---
Log message:

Rename the intrinsic enum values for llvm.va_* from Intrinsic::va_* to 
Intrinsic::va*.  This avoid conflicting with macros in the stdlib.h file.


---
Diffs of the changes:  (+3 -6)

Index: llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp
diff -u llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp:1.69 llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp:1.70
--- llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp:1.69	Wed Feb 11 20:27:09 2004
+++ llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp	Fri Mar 12 18:23:48 2004
@@ -126,13 +126,10 @@
       if (CallInst *CI = dyn_cast<CallInst>(I++))
         if (Function *F = CI->getCalledFunction())
           switch (F->getIntrinsicID()) {
-#undef va_start
-#undef va_copy
-#undef va_end
           case Intrinsic::not_intrinsic:
-          case Intrinsic::va_start:
-          case Intrinsic::va_copy:
-          case Intrinsic::va_end:
+          case Intrinsic::vastart:
+          case Intrinsic::vacopy:
+          case Intrinsic::vaend:
             // We directly implement these intrinsics.  Note that this knowledge
             // is incestuously entangled with the code in
             // SparcInstrSelection.cpp and must be updated when it is updated.





More information about the llvm-commits mailing list