[llvm-commits] CVS: llvm/lib/CodeGen/PreOpts/PreSelection.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Apr 16 15:30:05 PDT 2003


Changes in directory llvm/lib/CodeGen/PreOpts:

PreSelection.cpp updated: 1.7 -> 1.8

---
Log message:

Add new linkage types to support a real frontend



---
Diffs of the changes:

Index: llvm/lib/CodeGen/PreOpts/PreSelection.cpp
diff -u llvm/lib/CodeGen/PreOpts/PreSelection.cpp:1.7 llvm/lib/CodeGen/PreOpts/PreSelection.cpp:1.8
--- llvm/lib/CodeGen/PreOpts/PreSelection.cpp:1.7	Tue Jan 14 15:58:48 2003
+++ llvm/lib/CodeGen/PreOpts/PreSelection.cpp	Wed Apr 16 15:28:33 2003
@@ -87,7 +87,8 @@
             GV = PI->second;            // put in map
           else
             {
-              GV = new GlobalVariable(CV->getType(), true,true,CV); //put in map
+              GV = new GlobalVariable(CV->getType(), true, //put in map
+                                      GlobalValue::InternalLinkage, CV);
               myModule->getGlobalList().push_back(GV); // GV owned by module now
             }
         }





More information about the llvm-commits mailing list