[llvm-commits] [llvm] r52808 - /llvm/trunk/lib/CodeGen/MachineModuleInfo.cpp

Bill Wendling isanbard at gmail.com
Thu Jun 26 18:32:08 PDT 2008


Author: void
Date: Thu Jun 26 20:32:08 2008
New Revision: 52808

URL: http://llvm.org/viewvc/llvm-project?rev=52808&view=rev
Log:
Cruft left from patch revert...sorry. :-(

Modified:
    llvm/trunk/lib/CodeGen/MachineModuleInfo.cpp

Modified: llvm/trunk/lib/CodeGen/MachineModuleInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineModuleInfo.cpp?rev=52808&r1=52807&r2=52808&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/MachineModuleInfo.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineModuleInfo.cpp Thu Jun 26 20:32:08 2008
@@ -38,7 +38,7 @@
 /// getGlobalVariablesUsing - Return all of the GlobalVariables which have the
 /// specified value in their initializer somewhere.
 static void
-getGlobalVariablesUsing(Value *V, SmallVectorImpl<GlobalVariable*> &Result) {
+getGlobalVariablesUsing(Value *V, std::vector<GlobalVariable*> &Result) {
   // Scan though value users.
   for (Value::use_iterator I = V->use_begin(), E = V->use_end(); I != E; ++I) {
     if (GlobalVariable *GV = dyn_cast<GlobalVariable>(*I)) {
@@ -55,7 +55,7 @@
 /// named GlobalVariable.
 static void
 getGlobalVariablesUsing(Module &M, const std::string &RootName,
-                        SmallVectorImpl<GlobalVariable*> &Result) {
+                        std::vector<GlobalVariable*> &Result) {
   std::vector<const Type*> FieldTypes;
   FieldTypes.push_back(Type::Int32Ty);
   FieldTypes.push_back(Type::Int32Ty);
@@ -513,6 +513,9 @@
   // Construct the pointer to empty structure type.
   const StructType *EmptyStructTy =
     StructType::get(std::vector<const Type*>());
+
+  // Construct the pointer to empty structure type.
+  EmptyStructPtrTy = PointerType::getUnqual(EmptyStructTy);
   return EmptyStructPtrTy;
 }
 
@@ -831,7 +834,7 @@
 void
 MachineModuleInfo::getAnchoredDescriptors(Module &M, const AnchoredDesc *Desc,
                                           std::vector<void*> &AnchoredDescs) {
-  SmallVector<GlobalVariable*, 64> Globals;
+  std::vector<GlobalVariable*> Globals;
   getGlobalVariablesUsing(M, Desc->getAnchorString(), Globals);
 
   for (unsigned i = 0, N = Globals.size(); i < N; ++i) {





More information about the llvm-commits mailing list