Add the global decl to the Thunk struct.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90398 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp
index e6b6383..389373e 100644
--- a/lib/CodeGen/CGVtable.cpp
+++ b/lib/CodeGen/CGVtable.cpp
@@ -62,12 +62,14 @@
     Thunk()
       : Index(0) { }
     
-    Thunk(uint64_t Index, const ThunkAdjustment &Adjustment)
-      : Index(Index), Adjustment(Adjustment) { }
+    Thunk(uint64_t Index, GlobalDecl GD, const ThunkAdjustment &Adjustment)
+      : Index(Index), GD(GD), Adjustment(Adjustment) { }
     
     /// Index - The index in the vtable.
     uint64_t Index;
-    
+
+    GlobalDecl GD;
+
     /// Adjustment - The thunk adjustment.
     ThunkAdjustment Adjustment;
   };
@@ -847,7 +849,7 @@
                                        VirtualAdjustment);
 
         if (!isPure && !ThisAdjustment.isEmpty())
-          Thunks[GD] = Thunk(i, ThisAdjustment);
+          Thunks[GD] = Thunk(i, GD, ThisAdjustment);
         return true;
       }
 
@@ -858,7 +860,7 @@
         ThunkAdjustment ThisAdjustment(NonVirtualAdjustment, 0);
         
         if (!isPure)
-          Thunks[GD] = Thunk(i, ThisAdjustment);
+          Thunks[GD] = Thunk(i, GD, ThisAdjustment);
       }
       return true;
     }