[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jun 4 15:09:03 PDT 2003
Changes in directory llvm/lib/Transforms/Instrumentation:
EmitFunctions.cpp updated: 1.8 -> 1.9
---
Log message:
Make this work with counter > 127
---
Diffs of the changes:
Index: llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
diff -u llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp:1.8 llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp:1.9
--- llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp:1.8 Sat May 31 21:40:49 2003
+++ llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp Wed Jun 4 15:08:47 2003
@@ -37,7 +37,7 @@
cstruct, "llvmFunctionTable");
M.getGlobalList().push_back(gb);
- ConstantInt *cnst = ConstantInt::get(Type::IntTy, counter);
+ ConstantInt *cnst = ConstantSInt::get(Type::IntTy, counter);
GlobalVariable *fnCount = new GlobalVariable(Type::IntTy, true,
GlobalValue::ExternalLinkage,
cnst, "llvmFunctionCount");
More information about the llvm-commits
mailing list