[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp TraceValues.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Apr 16 15:29:03 PDT 2003


Changes in directory llvm/lib/Transforms/Instrumentation:

EmitFunctions.cpp updated: 1.5 -> 1.6
TraceValues.cpp updated: 1.54 -> 1.55

---
Log message:

Add new linkage types to support a real frontend


---
Diffs of the changes:

Index: llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp
diff -u llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp:1.5 llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp:1.6
--- llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp:1.5	Tue Jan 14 16:39:29 2003
+++ llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp	Wed Apr 16 15:28:40 2003
@@ -33,7 +33,8 @@
   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


Index: llvm/lib/Transforms/Instrumentation/TraceValues.cpp
diff -u llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.54 llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.55
--- llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.54	Sat Apr 12 22:50:14 2003
+++ llvm/lib/Transforms/Instrumentation/TraceValues.cpp	Wed Apr 16 15:28:40 2003
@@ -154,7 +154,8 @@
 
   // Create the global variable and record it in the module
   // The GV will be renamed to a unique name if needed.
-  GlobalVariable *GV = new GlobalVariable(Init->getType(), true, true, Init,
+  GlobalVariable *GV = new GlobalVariable(Init->getType(), true, 
+                                          GlobalValue::InternalLinkage, Init,
                                           "trstr");
   M->getGlobalList().push_back(GV);
   return GV;





More information about the llvm-commits mailing list