[llvm-commits] CVS: llvm/lib/Transforms/IPO/LowerSetJmp.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Jan 28 16:38:58 PST 2005



Changes in directory llvm/lib/Transforms/IPO:

LowerSetJmp.cpp updated: 1.21 -> 1.22
---
Log message:

Switchinst takes a hint for the number of cases it will have.


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

 LowerSetJmp.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Transforms/IPO/LowerSetJmp.cpp
diff -u llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.21 llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.22
--- llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.21	Thu Oct  7 01:00:24 2004
+++ llvm/lib/Transforms/IPO/LowerSetJmp.cpp	Fri Jan 28 18:38:45 2005
@@ -352,7 +352,7 @@
     CallInst(TryCatchLJ, make_vector<Value*>(GetSetJmpMap(Func), 0), "SJNum");
   DecisionBBIL.push_back(SJNum);
 
-  SwitchInst* SI = new SwitchInst(SJNum, Rethrow, DecisionBB);
+  SwitchInst* SI = new SwitchInst(SJNum, Rethrow, 0, DecisionBB);
   return SwitchValMap[Func] = SwitchValuePair(SI, LJVal);
 }
 






More information about the llvm-commits mailing list