summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-16 20:28:45 +0000
committerChris Lattner <sabre@nondot.org>2003-04-16 20:28:45 +0000
commit379a8d2d1cb3f5b6dbe13b94ed09a29d3e400a89 (patch)
tree76f2336957b62005e10d223d5493eda780e27cef /llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
parentf0e92b575f675ee8fb09b7fdb56cc27e8a5bdd21 (diff)
downloadbcm5719-llvm-379a8d2d1cb3f5b6dbe13b94ed09a29d3e400a89.tar.gz
bcm5719-llvm-379a8d2d1cb3f5b6dbe13b94ed09a29d3e400a89.zip
Add new linkage types to support a real frontend
llvm-svn: 5786
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp b/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
index d4a99e2c674..32488d69b53 100644
--- a/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
+++ b/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
@@ -33,7 +33,8 @@ bool EmitFunctionTable::run(Module &M){
StructType *sttype = StructType::get(vType);
ConstantStruct *cstruct = ConstantStruct::get(sttype, vConsts);
- GlobalVariable *gb = new GlobalVariable(cstruct->getType(), true, false,
+ GlobalVariable *gb = new GlobalVariable(cstruct->getType(), true,
+ GlobalValue::ExternalLinkage,
cstruct, "llvmFunctionTable");
M.getGlobalList().push_back(gb);
return true; // Always modifies program
OpenPOWER on IntegriCloud