summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-04 20:08:47 +0000
committerChris Lattner <sabre@nondot.org>2003-06-04 20:08:47 +0000
commita485efa141f26c9049bc2e3ca5125aaf15e63a54 (patch)
tree5d3435731d129dc52df43d21d80c8b50d6374bbf /llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
parentefafdf804601e0601d98605ba0dd0683437cdba3 (diff)
downloadbcm5719-llvm-a485efa141f26c9049bc2e3ca5125aaf15e63a54.tar.gz
bcm5719-llvm-a485efa141f26c9049bc2e3ca5125aaf15e63a54.zip
Make this work with counter > 127
llvm-svn: 6613
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp b/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
index ed3b63e81fc..7b9810748fb 100644
--- a/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
+++ b/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
@@ -37,7 +37,7 @@ bool EmitFunctionTable::run(Module &M){
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");
OpenPOWER on IntegriCloud